Merge pull request #415 from Areloch/GroundPlaneAssetify

Converts GroundPlane to utilize assets
This commit is contained in:
Brian Roberts 2020-12-19 02:35:32 -06:00 committed by GitHub
commit 7dc6fc8abf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 278 additions and 129 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();