Merge pull request #388 from Azaezel/alpha40_objectEditorAssetRef

hooks up shapebase children breadcrumb
This commit is contained in:
Brian Roberts 2020-12-03 13:49:30 -06:00 committed by GitHub
commit 6b58d4b8ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,6 +61,8 @@ function ShapeEditor::getObjectShapeFile( %this, %obj )
%path = %obj.shapeAsset !$= "" ? %obj.shapeAsset : %obj.shapeName;
else if ( %obj.isMemberOfClass( "PhysicsShape" ) )
%path = %obj.getDataBlock().shapeName;
else if ( %obj.isMemberOfClass( "ShapeBase" ) )
%path = %obj.getDataBlock().shapeAsset !$= "" ? %obj.getDataBlock().shapeAsset : %obj.getDataBlock().shapeFile;
else if ( %obj.isMemberOfClass( "GameBase" ) )
%path = %obj.getDataBlock().shapeFile;