diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-07-04 16:13:26 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-07-05 17:06:12 +0300 |
commit | 97aa43c36433202ca017a90f72cd0fe579b5f4d0 (patch) | |
tree | 4168e0302f1be881b7d281ea78e4ea64b177b6e1 /source/blender/depsgraph/DEG_depsgraph_query.h | |
parent | 9e155eb1f0083354ab5d66f233b1067d16088d62 (diff) |
Depsgraph: Make component traversal more granular
Now it is possible to start traversal from a given component.
Diffstat (limited to 'source/blender/depsgraph/DEG_depsgraph_query.h')
-rw-r--r-- | source/blender/depsgraph/DEG_depsgraph_query.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/depsgraph/DEG_depsgraph_query.h b/source/blender/depsgraph/DEG_depsgraph_query.h index 35176284abb..27891acb666 100644 --- a/source/blender/depsgraph/DEG_depsgraph_query.h +++ b/source/blender/depsgraph/DEG_depsgraph_query.h @@ -235,8 +235,11 @@ void DEG_foreach_dependent_ID(const Depsgraph *depsgraph, DEGForeachIDCallback callback, void *user_data); +/* Starts traversal from given component of the given ID, invokes callback for every other + * component which is directly on indirectly dependent on the source one. */ void DEG_foreach_dependent_ID_component(const Depsgraph *depsgraph, const ID *id, + eDepsObjectComponentType source_component, DEGForeachIDComponentCallback callback, void *user_data); |