Bläddra i källkod

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
Brian Roberts 1 år sedan
förälder
incheckning
105e45c56b

+ 2 - 0
Templates/BaseGame/game/tools/assetBrowser/scripts/editAsset.tscript

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