mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
more fixes
DSQ Fixes
This commit is contained in:
parent
2606b6366b
commit
10acab1b07
3 changed files with 11 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue