Browse Source

Fix issue with loadAsync never finishing

Gary Hsu 9 years ago
parent
commit
f3cf89dfa7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Loading/babylon.sceneLoader.ts

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

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