mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-25 07:09:27 +00:00
Prepend symbol for image files
Prepend image filenames in imageassets with "@" symbol so expand and collapse works correctly for files relative to that asset.taml file.
This commit is contained in:
parent
50f74368b3
commit
fc9f221ac0
5 changed files with 23 additions and 7 deletions
|
|
@ -71,7 +71,7 @@ function ImageAsset::generatePreviewImage(%this, %previewButton, %forceRegenerat
|
|||
{
|
||||
assetName = %this.assetName @ "_Preview";
|
||||
versionId = 1;
|
||||
imageFile = makeFullPath(%previewFilePath);
|
||||
imageFile = "@" @ %this.assetName @ "_Preview.png";
|
||||
};
|
||||
|
||||
TamlWrite(%preview_Asset, expandPath("^ToolsModule/resources/previewCache/" @ %previewButton.moduleName @ "/" @ %preview_Asset.AssetName @ ".asset.taml"));
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ function MaterialAsset::generatePreviewImage(%this, %previewButton, %forceRegene
|
|||
{
|
||||
assetName = %this.assetName @ "_Preview";
|
||||
versionId = 1;
|
||||
imageFile = makeFullPath(%previewFilePath);
|
||||
imageFile = "@" @ %this.assetName @ "_Preview.png";
|
||||
};
|
||||
|
||||
TamlWrite(%preview_Asset, expandPath("^ToolsModule/resources/previewCache/" @ %previewButton.moduleName @ "/" @ %preview_Asset.AssetName @ ".asset.taml"));
|
||||
|
|
|
|||
|
|
@ -151,7 +151,7 @@ function ShapeAsset::generatePreviewImage(%this, %previewButton, %forceRegenerat
|
|||
{
|
||||
assetName = %this.assetName @ "_Preview";
|
||||
versionId = 1;
|
||||
imageFile = makeFullPath(%previewFilePath);
|
||||
imageFile = "@" @ %this.assetName @ "_Preview.png";
|
||||
};
|
||||
|
||||
TamlWrite(%preview_Asset, expandPath("^ToolsModule/resources/previewCache/" @ %previewButton.moduleName @ "/" @ %preview_Asset.AssetName @ ".asset.taml"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue