浏览代码

Merge pull request #3740 from RaananW/asset-loader-no-tasks

set isLoading to false when no more tasks are available.
Raanan Weber 7 年之前
父节点
当前提交
e445282f10
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      dist/preview release/what's new.md
  2. 1 0
      src/Tools/babylon.assetsManager.ts

+ 1 - 0
dist/preview release/what's new.md

@@ -75,6 +75,7 @@
 - SPS solid particle `.pivot` property now also behaves like the standard mesh pivot. Former behavior (particle translation) can be kept with the particle property `.translateFromPivot` set to true ([jbousquie](https://github.com/jbousquie))
 - Texture extension detection in `Engine.CreateTexture` ([sebavan](https://github.com/sebavan))
 - SPS internal temporary vector3 instead of Tmp.Vector3 to avoid possible concurrent uses ([jbousquie](https://github.com/jbousquie))
+- Fixed a bug when calling load on an empty assets manager - [#3739](https://github.com/BabylonJS/Babylon.js/issues/3739). ([RaananW](https://github.com/RaananW))
 
 ## Breaking changes
 

+ 1 - 0
src/Tools/babylon.assetsManager.ts

@@ -934,6 +934,7 @@ module BABYLON {
             this._totalTasksCount = this._tasks.length;
 
             if (this._waitingTasksCount === 0) {
+                this._isLoading = false;
                 if (this.onFinish) {
                     this.onFinish(this._tasks);
                 }