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:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-07-04 16:04:03 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-07-05 17:06:12 +0300
commit9e155eb1f0083354ab5d66f233b1067d16088d62 (patch)
treebb41f9856844640f1f9083d9613f4b3e4aada95b /source/blender/depsgraph/DEG_depsgraph_query.h
parent03ac94f46abf9007f1ac2cd66805d3aab9aa4178 (diff)
Depsgraph: Add dependencies traversal which is aware of component
Sometimes it is required to know which exact part of ID is being dependent on the given iD. Now it is possible.
Diffstat (limited to 'source/blender/depsgraph/DEG_depsgraph_query.h')
-rw-r--r--source/blender/depsgraph/DEG_depsgraph_query.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/depsgraph/DEG_depsgraph_query.h b/source/blender/depsgraph/DEG_depsgraph_query.h
index 4148529d3f8..35176284abb 100644
--- a/source/blender/depsgraph/DEG_depsgraph_query.h
+++ b/source/blender/depsgraph/DEG_depsgraph_query.h
@@ -219,6 +219,9 @@ void DEG_iterator_ids_end(struct BLI_Iterator *iter);
/* ************************ DEG traversal ********************* */
typedef void (*DEGForeachIDCallback)(ID *id, void *user_data);
+typedef void (*DEGForeachIDComponentCallback)(ID *id,
+ eDepsObjectComponentType component,
+ void *user_data);
/* NOTE: Modifies runtime flags in depsgraph nodes, so can not be used in
* parallel. Keep an eye on that!
@@ -232,6 +235,11 @@ void DEG_foreach_dependent_ID(const Depsgraph *depsgraph,
DEGForeachIDCallback callback,
void *user_data);
+void DEG_foreach_dependent_ID_component(const Depsgraph *depsgraph,
+ const ID *id,
+ DEGForeachIDComponentCallback callback,
+ void *user_data);
+
void DEG_foreach_ID(const Depsgraph *depsgraph, DEGForeachIDCallback callback, void *user_data);
#ifdef __cplusplus