Skip to content

Commit

Permalink
update name
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyie committed Apr 29, 2024
1 parent 6b29617 commit 98fb508
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/Asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class Asset
metaData: Record<string, any> = {};
inheritedMetaData: Record<string, any> = {};
allMetaData: Record<string, any> = {};
internalMetaData: Record<string, any> = {};
transformData: Record<string, any> = {};

settings?: Record<string, any>;

Expand Down Expand Up @@ -63,7 +63,7 @@ export class Asset
asset.parent = this;

asset.inheritedMetaData = { ...this.inheritedMetaData, ...this.metaData };
asset.internalMetaData = { ...this.internalMetaData };
asset.transformData = { ...this.transformData };

asset.allMetaData = { ...asset.inheritedMetaData, ...asset.metaData };
}
Expand All @@ -86,7 +86,7 @@ export class Asset
asset.transformParent = this;

asset.inheritedMetaData = { ...this.inheritedMetaData, ...this.metaData };
asset.internalMetaData = { ...this.internalMetaData };
asset.transformData = { ...this.transformData };

asset.allMetaData = { ...asset.inheritedMetaData, ...asset.metaData };

Expand Down
2 changes: 1 addition & 1 deletion packages/texture-packer/src/texturePacker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export function texturePacker(_options: TexturePackerOptions = {}): AssetPipe<Te

textureAsset.metaData[tags.fix] = true;

jsonAsset.internalMetaData.page = i;
jsonAsset.transformData.page = i;

assets.push(textureAsset, jsonAsset);
}
Expand Down
4 changes: 2 additions & 2 deletions packages/texture-packer/src/texturePackerManifestMod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ function getTexturePackedAssets(assets: Asset[])
{
const jsonAsset = jsonAssets[i];

groupAssets[jsonAsset.internalMetaData.page] ??= [];
groupAssets[jsonAsset.transformData.page] ??= [];

groupAssets[jsonAsset.internalMetaData.page].push(jsonAsset);
groupAssets[jsonAsset.transformData.page].push(jsonAsset);
}

return groupAssets;
Expand Down

0 comments on commit 98fb508

Please sign in to comment.