Преглед изворни кода

Fix issue with loadAsync never finishing

Gary Hsu пре 9 година
родитељ
комит
f3cf89dfa7
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      src/Loading/babylon.sceneLoader.ts

+ 2 - 0
src/Loading/babylon.sceneLoader.ts

@@ -283,6 +283,8 @@
                         if (onsuccess) {
                             onsuccess(scene);
                         }
+
+                        scene._removePendingData(loadingToken);
                     }, () => {
                         if (onerror) {
                             onerror(scene);