From 6f23eed8e042775d250107f3f13b351d917713de Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Tue, 1 Dec 2020 13:36:32 -0600 Subject: [PATCH] hooks up shapebase children breadcrumb (lets you select an object-instance in game and review it via the shape editor) TODO: hutn why lists aren't propagating --- .../BaseGame/game/tools/shapeEditor/scripts/shapeEditor.ed.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Templates/BaseGame/game/tools/shapeEditor/scripts/shapeEditor.ed.cs b/Templates/BaseGame/game/tools/shapeEditor/scripts/shapeEditor.ed.cs index df59cceec..2ec1579ed 100644 --- a/Templates/BaseGame/game/tools/shapeEditor/scripts/shapeEditor.ed.cs +++ b/Templates/BaseGame/game/tools/shapeEditor/scripts/shapeEditor.ed.cs @@ -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;