mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-06-14 01:14:17 +00:00
only dsq should call import sequence
This commit is contained in:
parent
4f32fec320
commit
d6c32f3e35
2 changed files with 8 additions and 2 deletions
|
|
@ -476,8 +476,14 @@ bool GuiShapeEdPreview::setObjectShapeAsset(const char* assetId)
|
|||
ShapeAnimationAsset* asset = AssetDatabase.acquireAsset<ShapeAnimationAsset>(id);
|
||||
StringTableEntry animPath = asset->getAnimationPath();
|
||||
AssetDatabase.releaseAsset(id);
|
||||
|
||||
Torque::Path dsqPath(animPath);
|
||||
String fileExt = String::ToLower(dsqPath.getExtension());
|
||||
|
||||
if (fileExt != String("dsq"))
|
||||
{
|
||||
return setObjectModel(animPath);
|
||||
}
|
||||
|
||||
Torque::Path shapePath;
|
||||
if (!findCompanionShape(dsqPath, shapePath))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue