Explorar o código

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

Michael Schlotfeldt %!s(int64=7) %!d(string=hai) anos
pai
achega
b75df177c6
Modificáronse 1 ficheiros con 1 adicións e 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;
             }