diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2021-10-01 17:07:05 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2021-10-01 17:15:50 +0300 |
commit | f497e471f8663498596725c09702b5b6da39b707 (patch) | |
tree | b4af74592302908363a3b6638aa72818748c5a67 /source/blender/blenkernel/BKE_asset_catalog.hh | |
parent | 3be4cb5b279165bb09df53f24f654f688a2f2e0f (diff) |
Asset Catalogs: always have an Asset Catalog Tree available
Always create an `AssetCatalogTree` in the `AssetCatalogService`. This
ensures that newly-created catalogs are immediately visible in the UI
(because they insert themselves into an already-existing tree).
Diffstat (limited to 'source/blender/blenkernel/BKE_asset_catalog.hh')
-rw-r--r-- | source/blender/blenkernel/BKE_asset_catalog.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_asset_catalog.hh b/source/blender/blenkernel/BKE_asset_catalog.hh index 65082f06f3a..8afc4fe2ad2 100644 --- a/source/blender/blenkernel/BKE_asset_catalog.hh +++ b/source/blender/blenkernel/BKE_asset_catalog.hh @@ -134,7 +134,7 @@ class AssetCatalogService { Map<CatalogID, std::unique_ptr<AssetCatalog>> catalogs_; Map<CatalogID, std::unique_ptr<AssetCatalog>> deleted_catalogs_; std::unique_ptr<AssetCatalogDefinitionFile> catalog_definition_file_; - std::unique_ptr<AssetCatalogTree> catalog_tree_; + std::unique_ptr<AssetCatalogTree> catalog_tree_ = std::make_unique<AssetCatalogTree>(); CatalogFilePath asset_library_root_; void load_directory_recursive(const CatalogFilePath &directory_path); |