Explorar o código

Merge pull request #467 from Areloch/shapeEdListFix

Fixes the constructor path compare logic in the shape editor so the lists can populate correctly.
Brian Roberts %!s(int64=4) %!d(string=hai) anos
pai
achega
11e13dddf0
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

@@ -148,7 +148,7 @@ function ShapeEditorPlugin::onWorldEditorStartup(%this)
 function ShapeEditorPlugin::openShapeAsset(%this, %assetDef)
 function ShapeEditorPlugin::openShapeAsset(%this, %assetDef)
 {
 {
    %this.selectedAssetDef = %assetDef;
    %this.selectedAssetDef = %assetDef;
-   %this.open(%this.selectedAssetDef.getShapeFile());
+   %this.open(makeRelativePath(%this.selectedAssetDef.getShapeFile()));
 }
 }
 
 
 function ShapeEditorPlugin::openShapeAssetId(%this, %assetId)
 function ShapeEditorPlugin::openShapeAssetId(%this, %assetId)