Explorar o código

Added the makeRelative call to the other openShapeAsset function to ensure it works both ways

Areloch %!s(int64=4) %!d(string=hai) anos
pai
achega
931556c3c6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)