From 931556c3c604495f0fa8a9a1af341737e9085fe3 Mon Sep 17 00:00:00 2001 From: Areloch Date: Sat, 13 Feb 2021 00:18:48 -0600 Subject: [PATCH] Added the makeRelative call to the other openShapeAsset function to ensure it works both ways --- Templates/BaseGame/game/tools/shapeEditor/main.tscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Templates/BaseGame/game/tools/shapeEditor/main.tscript b/Templates/BaseGame/game/tools/shapeEditor/main.tscript index c42a451dc..ac3f972a0 100644 --- a/Templates/BaseGame/game/tools/shapeEditor/main.tscript +++ b/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)