Browse Source

Changed getTotalVertices to use strict check. Called a lot. Small performance on large scenes.

Michael Schlotfeldt 7 years ago
parent
commit
b75df177c6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Mesh/babylon.geometry.ts

+ 1 - 1
src/Mesh/babylon.geometry.ts

@@ -267,7 +267,7 @@
         }
         }
 
 
         public getTotalVertices(): number {
         public getTotalVertices(): number {
-            if (!this.isReady()) {
+            if (this.isReady() === false) {
                 return 0;
                 return 0;
             }
             }