소스 검색

Fix forceCompilation in shadowGenerator to be more efficient

Gary Hsu 7 년 전
부모
커밋
4add14c240
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      src/Lights/Shadows/babylon.shadowGenerator.ts

+ 1 - 3
src/Lights/Shadows/babylon.shadowGenerator.ts

@@ -626,9 +626,7 @@
                     return;
                     return;
                 }
                 }
 
 
-                let subMesh = subMeshes[currentIndex];
-
-                if (this.isReady(subMesh, options ? options.useInstances : false)) {
+                while (this.isReady(subMeshes[currentIndex], options ? options.useInstances : false)) {
                     currentIndex++;
                     currentIndex++;
                     if (currentIndex >= subMeshes.length) {
                     if (currentIndex >= subMeshes.length) {
                         if (onCompiled) {
                         if (onCompiled) {