mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
Merge pull request #1112 from Areloch/AssetPropertiesSaveFix
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:
commit
2a27addf08
1 changed files with 1 additions and 2 deletions
|
|
@ -77,8 +77,7 @@ function AssetBrowser::editAssetInfo(%this)
|
||||||
|
|
||||||
%assetDef = AssetDatabase.acquireAsset(EditAssetPopup.assetId);
|
%assetDef = AssetDatabase.acquireAsset(EditAssetPopup.assetId);
|
||||||
|
|
||||||
eval("AssetBrowser.tempAsset = new " @ %assetDef.getClassName() @ "();");
|
AssetBrowser.tempAsset = %assetDef.deepClone();
|
||||||
AssetBrowser.tempAsset.assignFieldsFrom(%assetDef);
|
|
||||||
|
|
||||||
AssetEditInspector.inspect(AssetBrowser.tempAsset);
|
AssetEditInspector.inspect(AssetBrowser.tempAsset);
|
||||||
AssetBrowser_editAsset.editedAssetId = EditAssetPopup.assetId;
|
AssetBrowser_editAsset.editedAssetId = EditAssetPopup.assetId;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue