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

This commit is contained in:
Areloch 2021-02-13 00:18:48 -06:00
parent 11e13dddf0
commit 931556c3c6

View file

@ -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)