Explorar el Código

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

Michael Schlotfeldt hace 7 años
padre
commit
b75df177c6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Mesh/babylon.geometry.ts

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

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