[LY-111998] Surface Tags didn't refresh immediately. (#4468)

When adding or modifying surface tags to a surface tag list asset, the surface tag lists didn't immediately refresh in the Editor.  There were a couple of bugs in the way the tag assets were getting loaded and monitored that are now fixed.

Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com>
This commit is contained in:
Mike Balfour
2021-10-05 11:22:36 -05:00
committed by GitHub
parent 34c0fb86ac
commit 365dd61778
2 changed files with 26 additions and 30 deletions
@@ -48,6 +48,7 @@ namespace SurfaceData
private:
void LoadAsset(const AZ::Data::AssetId& assetId);
void AddAsset(AZ::Data::Asset<AZ::Data::AssetData>& asset);
////////////////////////////////////////////////////////////////////////
@@ -63,7 +64,6 @@ namespace SurfaceData
////////////////////////////////////////////////////////////////////////
// AzFramework::AssetCatalogEventBus
void OnCatalogLoaded(const char* /*catalogFile*/) override;
void OnCatalogAssetChanged(const AZ::Data::AssetId& assetId) override;
void OnCatalogAssetAdded(const AZ::Data::AssetId& assetId) override;
void OnCatalogAssetRemoved(const AZ::Data::AssetId& assetId, const AZ::Data::AssetInfo& assetInfo) override;