mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-06-03 11:36:36 +00:00
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:
parent
2895e98cbb
commit
ec2a55c535
4 changed files with 113 additions and 7 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue