mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
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:
commit
105e45c56b
1 changed files with 2 additions and 0 deletions
|
|
@ -9,6 +9,8 @@ function AssetBrowser_editAsset::saveAsset(%this)
|
||||||
|
|
||||||
%assetType = AssetDatabase.getAssetType(%this.editedAssetId);
|
%assetType = AssetDatabase.getAssetType(%this.editedAssetId);
|
||||||
%assetDef = AssetDatabase.acquireAsset(%this.editedAssetId);
|
%assetDef = AssetDatabase.acquireAsset(%this.editedAssetId);
|
||||||
|
%assetDef.refreshAsset();
|
||||||
|
|
||||||
AssetBrowser.call("on" @ %assetType @ "Changed", %assetDef);
|
AssetBrowser.call("on" @ %assetType @ "Changed", %assetDef);
|
||||||
AssetDatabase.releaseAsset(%this.editedAssetId);
|
AssetDatabase.releaseAsset(%this.editedAssetId);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue