mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Fixes the handling of the temp editable asset definition in the asset properties inspector so it'll save sub-objects as expected
This commit is contained in:
parent
a16715f673
commit
8232d0f6dd
|
|
@ -77,8 +77,7 @@ function AssetBrowser::editAssetInfo(%this)
|
|||
|
||||
%assetDef = AssetDatabase.acquireAsset(EditAssetPopup.assetId);
|
||||
|
||||
eval("AssetBrowser.tempAsset = new " @ %assetDef.getClassName() @ "();");
|
||||
AssetBrowser.tempAsset.assignFieldsFrom(%assetDef);
|
||||
AssetBrowser.tempAsset = %assetDef.deepClone();
|
||||
|
||||
AssetEditInspector.inspect(AssetBrowser.tempAsset);
|
||||
AssetBrowser_editAsset.editedAssetId = EditAssetPopup.assetId;
|
||||
|
|
|
|||
Loading…
Reference in a new issue