ソースを参照

Merge pull request #3086 from bghgary/shadowGenerator-fix

Fix forceCompilation in shadowGenerator to be more efficient
David Catuhe 7 年 前
コミット
085f9cecae
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;
                 }
 
-                let subMesh = subMeshes[currentIndex];
-
-                if (this.isReady(subMesh, options ? options.useInstances : false)) {
+                while (this.isReady(subMeshes[currentIndex], options ? options.useInstances : false)) {
                     currentIndex++;
                     if (currentIndex >= subMeshes.length) {
                         if (onCompiled) {