Browse Source

Merge pull request #468 from Areloch/shapeEdListFix_Followup

Missed a function where similar to previous was needed for the shape editor list fix to ensure it works both ways
Brian Roberts 4 years ago
parent
commit
331200ba69
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Templates/BaseGame/game/tools/shapeEditor/main.tscript

+ 1 - 1
Templates/BaseGame/game/tools/shapeEditor/main.tscript

@@ -155,7 +155,7 @@ function ShapeEditorPlugin::openShapeAssetId(%this, %assetId)
 {
    %this.selectedAssetDef = AssetDatabase.acquireAsset(%assetId);
    //%this.selectedAssetDef = %assetDef;
-   %this.open(%this.selectedAssetDef.getShapeFile());
+   %this.open(makeRelativePath(%this.selectedAssetDef.getShapeFile()));
 }
 
 function ShapeEditorPlugin::open(%this, %filename)