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:
authorJacques Lucke <jacques@blender.org>2020-06-10 16:23:22 +0300
committerJacques Lucke <jacques@blender.org>2020-06-10 16:24:03 +0300
commit0852d13bbdd4b0394f4ff9d051959c7b731977b7 (patch)
tree74ed0db7522aca2860d400842def02ebc17fb903 /source/blender/depsgraph/intern/builder/deg_builder_cache.h
parent4fefe3ac3b8d8cd70d1f54e1be21f6455ce0d744 (diff)
Depsgraph: use native Set data structure
Differential Revision: https://developer.blender.org/D7982
Diffstat (limited to 'source/blender/depsgraph/intern/builder/deg_builder_cache.h')
-rw-r--r--source/blender/depsgraph/intern/builder/deg_builder_cache.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_cache.h b/source/blender/depsgraph/intern/builder/deg_builder_cache.h
index 949020e3a81..bb4e1f5c96a 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_cache.h
+++ b/source/blender/depsgraph/intern/builder/deg_builder_cache.h
@@ -44,7 +44,10 @@ class AnimatedPropertyID {
AnimatedPropertyID(ID *id, StructRNA *type, const char *property_name);
AnimatedPropertyID(ID *id, StructRNA *type, void *data, const char *property_name);
+ uint32_t hash() const;
+
bool operator<(const AnimatedPropertyID &other) const;
+ friend bool operator==(const AnimatedPropertyID &a, const AnimatedPropertyID &b);
/* Corresponds to PointerRNA.data. */
void *data;
@@ -67,7 +70,7 @@ class AnimatedPropertyStorage {
bool is_fully_initialized;
/* indexed by PointerRNA.data. */
- set<AnimatedPropertyID> animated_properties_set;
+ Set<AnimatedPropertyID> animated_properties_set;
};
typedef map<ID *, AnimatedPropertyStorage *> AnimatedPropertyStorageMap;