Pārlūkot izejas kodu

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

Michael Schlotfeldt 7 gadi atpakaļ
vecāks
revīzija
b75df177c6
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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;
             }