mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-21 07:33:45 +00:00
Merge pull request #1568 from Areloch/ShapeEditorFixupsAndImprovements
Updates the ShapeEditor with various fixes and QoL changes
This commit is contained in:
commit
191e69e589
11 changed files with 643 additions and 316 deletions
|
|
@ -2155,13 +2155,15 @@ DefineTSShapeConstructorMethod(addSequence, bool,
|
|||
StringTableEntry assetType = AssetDatabase.getAssetType(assetId);
|
||||
if (assetType == StringTable->insert("ShapeAsset"))
|
||||
{
|
||||
AssetPtr<ShapeAsset> asset = assetId;
|
||||
ShapeAsset* asset = AssetDatabase.acquireAsset<ShapeAsset>(assetId);
|
||||
srcPath = asset->getShapeFile();
|
||||
AssetDatabase.releaseAsset(assetId);
|
||||
}
|
||||
else if (assetType == StringTable->insert("ShapeAnimationAsset"))
|
||||
{
|
||||
AssetPtr<ShapeAnimationAsset> asset = assetId;
|
||||
ShapeAnimationAsset* asset = AssetDatabase.acquireAsset<ShapeAnimationAsset>(assetId);
|
||||
srcPath = asset->getAnimationPath();
|
||||
AssetDatabase.releaseAsset(assetId);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue