Merge branch 'GroundPlaneAssetify' of https://github.com/Areloch/Torque3D into Preview4_0

This commit is contained in:
Areloch 2020-12-18 14:12:54 -06:00
commit 3821ddd15a
20 changed files with 276 additions and 124 deletions

View file

@ -28,6 +28,12 @@ function AssetBrowser::editAsset(%this, %assetDef)
}
}
}
else if(!isObject(%assetDef) && strchrpos(%assetDef, ":") != -1)
{
//Turns out we were passed an assetid, not an asset definition.
//Grab the asset def from that
%assetDef = AssetDatabase.acquireAsset(%assetDef);
}
%assetType = %assetDef.getClassName();