Merge pull request #1119 from Areloch/AssetPropEditRefreshFix

Ensures that when the asset is edited via the asset properties window the asset is refreshed in the backend systems as well
This commit is contained in:
Brian Roberts 2023-10-24 18:42:53 -05:00 committed by GitHub
commit 105e45c56b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,8 @@ function AssetBrowser_editAsset::saveAsset(%this)
%assetType = AssetDatabase.getAssetType(%this.editedAssetId);
%assetDef = AssetDatabase.acquireAsset(%this.editedAssetId);
%assetDef.refreshAsset();
AssetBrowser.call("on" @ %assetType @ "Changed", %assetDef);
AssetDatabase.releaseAsset(%this.editedAssetId);