mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 22:54:34 +00:00
Merge pull request #415 from Areloch/GroundPlaneAssetify
Converts GroundPlane to utilize assets
This commit is contained in:
commit
7dc6fc8abf
22 changed files with 278 additions and 129 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue