Commit 82cff9b8 authored by rockyl's avatar rockyl

修复自定义模块素材丢失的问题

parent 9079fb65
{"id":"engine","url":"engine.741a07d921ba996527afc8c11ef426f24ada0932.js"}
\ No newline at end of file
{"id":"engine","url":"engine.064186f5e8dcc18d3c38e8e0526e183be57587f2.js"}
\ No newline at end of file
......@@ -311,13 +311,12 @@ export class GameStage extends Node {
lazyLoadAllAssets = async () => {
let {assets, customs} = this._config;
if (Array.isArray(assets)) {
return;
}
for (let uuid in assets) {
let group = assets[uuid];
if (group && group.length > 0) {
await loadAssetsGroup(group, uuid);
if (!Array.isArray(assets)) {
for (let uuid in assets) {
let group = assets[uuid];
if (group && group.length > 0) {
await loadAssetsGroup(group, uuid);
}
}
}
for (let custom of customs) {
......
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