mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +00:00
Fixes logic when opening shapeEditor with a TSStatic selected, it'll attempt to load up the shapeAsset if one is set on the static.
This commit is contained in:
parent
31039de2cf
commit
55e24926e4
2 changed files with 6 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ function ShapeEditor::getObjectShapeFile( %this, %obj )
|
|||
// works for the vast majority of object types)
|
||||
%path = "";
|
||||
if ( %obj.isMemberOfClass( "TSStatic" ) )
|
||||
%path = %obj.shapeName;
|
||||
%path = %obj.shapeAsset !$= "" ? %obj.shapeAsset : %obj.shapeName;
|
||||
else if ( %obj.isMemberOfClass( "PhysicsShape" ) )
|
||||
%path = %obj.getDataBlock().shapeName;
|
||||
else if ( %obj.isMemberOfClass( "GameBase" ) )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue