few fixes

Only export DSQ if we have a realmesh to pair with it.
When looking for the companion shape use the last '_' to strip instead of the first
This commit is contained in:
marauder2k7 2026-05-24 13:23:46 +01:00
parent 2895e98cbb
commit ec2a55c535
4 changed files with 113 additions and 7 deletions

View file

@ -410,7 +410,7 @@ bool GuiShapeEdPreview::findCompanionShape(const Torque::Path& dsqPath, Torque::
// AssimpLoader and ColladaLoader exports as "modelname_sequencename.dsq" alongside "modelname.cached.dts"
// so strip everything from the last underscore to find the base name
String fileName = dsqPath.getFileName();
String::SizeType sep = fileName.find('_');
String::SizeType sep = fileName.find('_',0, String::Right);
if (sep != String::NPos)
{