Commit a1fa8aeb authored by rockyl's avatar rockyl

修复没有素材待加载时展示加载视图的情况

parent d5201788
...@@ -229,6 +229,7 @@ export class GameStage extends Node { ...@@ -229,6 +229,7 @@ export class GameStage extends Node {
groups[viewConfig.uuid] = depAssets; groups[viewConfig.uuid] = depAssets;
} }
} }
if(Object.keys(groups).length > 0){
await loadAssetsGroups(groups, async () => { await loadAssetsGroups(groups, async () => {
if (showLoadingView) { if (showLoadingView) {
await this.showInnerLoadingView(); await this.showInnerLoadingView();
...@@ -239,6 +240,7 @@ export class GameStage extends Node { ...@@ -239,6 +240,7 @@ export class GameStage extends Node {
} }
}); });
} }
}
view = instantiate(viewConfig); view = instantiate(viewConfig);
let store = {}; let store = {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment