Merge pull request #1560 from marauder2k9-torque/assimp-armature-fixes

DSQ Fixes
This commit is contained in:
Brian Roberts 2025-09-23 13:22:34 -05:00 committed by GitHub
commit f1723bbb28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 5 deletions

View file

@ -2155,15 +2155,13 @@ DefineTSShapeConstructorMethod(addSequence, bool,
StringTableEntry assetType = AssetDatabase.getAssetType(assetId);
if (assetType == StringTable->insert("ShapeAsset"))
{
ShapeAsset* asset = AssetDatabase.acquireAsset<ShapeAsset>(assetId);
AssetPtr<ShapeAsset> asset = assetId;
srcPath = asset->getShapeFile();
AssetDatabase.releaseAsset(assetId);
}
else if (assetType == StringTable->insert("ShapeAnimationAsset"))
{
ShapeAnimationAsset* asset = AssetDatabase.acquireAsset<ShapeAnimationAsset>(assetId);
AssetPtr<ShapeAnimationAsset> asset = assetId;
srcPath = asset->getAnimationPath();
AssetDatabase.releaseAsset(assetId);
}
}