Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2021-09-24 17:12:08 +0300
committerSybren A. Stüvel <sybren@blender.org>2021-09-24 17:34:25 +0300
commit25d4de92fa763a5d1d72696cf1b4567a01099c4d (patch)
treece8e780c359277751ef7514cb2a436e536c16d43
parentc0db8e3b41e21bb6f8327a038601827a0d20a9cc (diff)
Cleanup: UUID, add some documenting comments
No functional changes.
-rw-r--r--source/blender/blenkernel/BKE_asset_catalog.hh4
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