From ddbcc15cdda3c8e8e0e7f25ac4828d07c45e7974 Mon Sep 17 00:00:00 2001 From: AZhan Date: Thu, 23 Mar 2023 00:07:27 +0800 Subject: [PATCH] fix: scene parser error --- .../src/resource-deserialize/resources/scene/SceneParser.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/loader/src/resource-deserialize/resources/scene/SceneParser.ts b/packages/loader/src/resource-deserialize/resources/scene/SceneParser.ts index bda667e7d4..75296c45c8 100644 --- a/packages/loader/src/resource-deserialize/resources/scene/SceneParser.ts +++ b/packages/loader/src/resource-deserialize/resources/scene/SceneParser.ts @@ -82,7 +82,7 @@ export class SceneParser { } } - private _parseComponents() { + private _parseComponents(): Promise { const entitiesConfig = this.context.originalData.entities; const entityMap = this.context.entityMap; @@ -103,6 +103,7 @@ export class SceneParser { promises.push(promise); } } + return Promise.all(promises); } private _clearAndResolveScene() {