diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-02-12 14:01:17 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-02-12 14:07:59 +0300 |
commit | 07ff9e92bbcb6c293cffba9c9428926f6fa72160 (patch) | |
tree | a5b90a7f60f28bb26a4909b60a2aad6482ba1a8b /source/blender/depsgraph/intern/depsgraph_build.cc | |
parent | d3870471edd775777f774dba4e66a3c87b632509 (diff) |
Depsgraph: Add utility function for transform dependency
This is what modifiers are to use to indicate that they depend
on a transformation of the object itself.
Currently should be no functional changes, but in the future
this will allow to easily change transform operation depending
on whether there is a simulation associated with the object.
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_build.cc')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_build.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_build.cc b/source/blender/depsgraph/intern/depsgraph_build.cc index e44a98518d1..8720e407681 100644 --- a/source/blender/depsgraph/intern/depsgraph_build.cc +++ b/source/blender/depsgraph/intern/depsgraph_build.cc @@ -190,6 +190,16 @@ void DEG_add_generic_id_relation(struct DepsNodeHandle *node_handle, description); } +void DEG_add_modifier_to_transform_relation( + struct DepsNodeHandle *node_handle, + const char *description) +{ + DEG::DepsNodeHandle *deg_node_handle = get_node_handle(node_handle); + deg_node_handle->builder->add_modifier_to_transform_relation( + deg_node_handle, + description); +} + void DEG_add_special_eval_flag(struct DepsNodeHandle *node_handle, ID *id, uint32_t flag) |