소스 검색

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);
    %assetDef = AssetDatabase.acquireAsset(%this.editedAssetId);
+   %assetDef.refreshAsset();
+   
    AssetBrowser.call("on" @ %assetType @ "Changed", %assetDef);
    AssetDatabase.releaseAsset(%this.editedAssetId);