소스 검색

Merge pull request #388 from Azaezel/alpha40_objectEditorAssetRef

hooks up shapebase children breadcrumb
Brian Roberts 4 년 전
부모
커밋
6b58d4b8ca
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      Templates/BaseGame/game/tools/shapeEditor/scripts/shapeEditor.ed.cs

+ 2 - 0
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;