瀏覽代碼

Ensures that when the asset is edited via the asset properties window, the asset is refreshed in the backend systems as well

Areloch 1 年之前
父節點
當前提交
c3ea12f9df
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Templates/BaseGame/game/tools/assetBrowser/scripts/editAsset.tscript

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

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