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:
-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