소스 검색

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

Michael Schlotfeldt 7 년 전
부모
커밋
b75df177c6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
             }