diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2021-09-24 17:12:08 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2021-09-24 17:34:25 +0300 |
commit | 25d4de92fa763a5d1d72696cf1b4567a01099c4d (patch) | |
tree | ce8e780c359277751ef7514cb2a436e536c16d43 /source/blender/blenkernel/BKE_asset_catalog.hh | |
parent | c0db8e3b41e21bb6f8327a038601827a0d20a9cc (diff) |
Cleanup: UUID, add some documenting comments
No functional changes.
Diffstat (limited to 'source/blender/blenkernel/BKE_asset_catalog.hh')
-rw-r--r-- | source/blender/blenkernel/BKE_asset_catalog.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_asset_catalog.hh b/source/blender/blenkernel/BKE_asset_catalog.hh index 51cfa8452c0..cf9d581b148 100644 --- a/source/blender/blenkernel/BKE_asset_catalog.hh +++ b/source/blender/blenkernel/BKE_asset_catalog.hh @@ -256,6 +256,7 @@ class AssetCatalog { static std::string sensible_simple_name_for_path(const CatalogPath &path); }; +/** Comparator for asset catalogs, ordering by (path, UUID). */ struct AssetCatalogPathCmp { bool operator()(const AssetCatalog *lhs, const AssetCatalog *rhs) const { @@ -266,6 +267,9 @@ struct AssetCatalogPathCmp { } }; +/** + * Set that stores catalogs ordered by (path, UUID). + * Being a set, duplicates are removed. The catalog's simple name is ignored in this. */ using AssetCatalogOrderedSet = std::set<const AssetCatalog *, AssetCatalogPathCmp>; } // namespace blender::bke |