From c3ea12f9dfe49dc706c3fe59ba2e41592964f814 Mon Sep 17 00:00:00 2001 From: Areloch Date: Sun, 22 Oct 2023 11:32:54 -0500 Subject: [PATCH] Ensures that when the asset is edited via the asset properties window, the asset is refreshed in the backend systems as well --- .../BaseGame/game/tools/assetBrowser/scripts/editAsset.tscript | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Templates/BaseGame/game/tools/assetBrowser/scripts/editAsset.tscript b/Templates/BaseGame/game/tools/assetBrowser/scripts/editAsset.tscript index 55c5b8308..226635dba 100644 --- a/Templates/BaseGame/game/tools/assetBrowser/scripts/editAsset.tscript +++ b/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);