only dsq should call import sequence

This commit is contained in:
marauder2k7 2026-05-26 11:33:06 +01:00
parent 4f32fec320
commit d6c32f3e35
2 changed files with 8 additions and 2 deletions

View file

@ -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))
{

View file

@ -435,7 +435,7 @@ bool TSShape::importSequences(Stream * s, const String& sequencePath)
{
// error -- don't support future version yet :>
Con::errorf(ConsoleLogEntry::General,
"Sequence import failed: attempt to load a version %i ddsq-animation, can currently only load version %i and before.",
"Sequence import failed: attempt to load a version %i dsq-animation, can currently only load version %i and before.",
smReadVersion, smVersion);
return false;
}