浏览代码

Clearin the callback array once done.

Raanan Weber 9 年之前
父节点
当前提交
88b77352af
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/babylon.engine.ts

+ 1 - 0
src/babylon.engine.ts

@@ -91,6 +91,7 @@
         texture.onLoadedCallbacks.forEach(function (callback) {
         texture.onLoadedCallbacks.forEach(function (callback) {
             callback();
             callback();
         });
         });
+        texture.onLoadedCallbacks = [];
     };
     };
 
 
     var partialLoad = (url: string, index: number, loadedImages: any, scene,
     var partialLoad = (url: string, index: number, loadedImages: any, scene,