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:
Brian Roberts 2023-10-18 17:55:06 -05:00 committed by GitHub
commit 2a27addf08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;