From 4155cc14baf06517a4023e6f29e3489991b7d536 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E9=B3=90?= Date: Thu, 26 Dec 2024 19:15:41 +0800 Subject: [PATCH] feat: change name --- packages/core/src/asset/ResourceManager.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/src/asset/ResourceManager.ts b/packages/core/src/asset/ResourceManager.ts index 52f442817f..40e29d982e 100644 --- a/packages/core/src/asset/ResourceManager.ts +++ b/packages/core/src/asset/ResourceManager.ts @@ -596,8 +596,8 @@ export class ResourceManager { config.forEach((element) => { this._virtualPathMap[element.virtualPath] = element.path; this._editorResourceConfig[element.id] = element; - if (element.dependentAssets) { - this._dependencyMap[element.virtualPath] = element.dependentAssets; + if (element.dependentAssetMap) { + this._dependencyMap[element.virtualPath] = element.dependentAssetMap; } }); } @@ -641,7 +641,7 @@ type EditorResourceItem = { path: string; type: string; id: string; - dependentAssets: { [key: string]: string }; + dependentAssetMap: { [key: string]: string }; }; type EditorResourceConfig = Record; type SubAssetPromiseCallbacks = Record<