Merge pull request #1568 from Areloch/ShapeEditorFixupsAndImprovements

Updates the ShapeEditor with various fixes and QoL changes
This commit is contained in:
Brian Roberts 2025-10-06 07:42:49 -05:00 committed by GitHub
commit 191e69e589
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 643 additions and 316 deletions

View file

@ -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);
}
}