Skip to content

Commit

Permalink
feat: fix cr problem
Browse files Browse the repository at this point in the history
  • Loading branch information
木鳐 committed Dec 26, 2024
1 parent 5174b59 commit b54f336
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/asset/ResourceManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ export class ResourceManager {
initVirtualResources(config: EditorResourceItem[]): void {
config.forEach((element) => {
this._virtualPathMap[element.virtualPath] = element.path;
this._dependencyMap[element.virtualPath] = element.depndentAssets;
element.depndentAssets && this._dependencyMap[element.virtualPath] = element.depndentAssets;
this._editorResourceConfig[element.id] = element;
});
}
Expand Down Expand Up @@ -635,7 +635,7 @@ const rePropName = RegExp(
);

type EditorResourceItem = { virtualPath: string; path: string; type: string; id: string, depndentAssets: { [key: string]: string } };
type EditorResourceConfig = Record< string, EditorResourceItem>;
type EditorResourceConfig = Record< string, EditorResourceItem >;
type SubAssetPromiseCallbacks<T> = Record<
// main asset url, ie. "https://***.glb"
string,
Expand Down

0 comments on commit b54f336

Please sign in to comment.