diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-03 14:10:04 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-03 14:10:04 +0300 |
commit | 57ec2156770a87c1a8f7b4b60e29ce4fa4cd4454 (patch) | |
tree | 72055c12917d06f6322232554cafba8af6664358 /source/blender/depsgraph | |
parent | e72dfee66fe556dc09ae30e706a5d16d552a5413 (diff) |
Depsgraph: Add utility function to tag ID for update within a specific graph
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r-- | source/blender/depsgraph/DEG_depsgraph.h | 5 | ||||
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_tag.cc | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/depsgraph/DEG_depsgraph.h b/source/blender/depsgraph/DEG_depsgraph.h index c47ddb711a6..6bd24e7ba2b 100644 --- a/source/blender/depsgraph/DEG_depsgraph.h +++ b/source/blender/depsgraph/DEG_depsgraph.h @@ -169,6 +169,11 @@ enum { void DEG_id_tag_update(struct ID *id, int flag); void DEG_id_tag_update_ex(struct Main *bmain, struct ID *id, int flag); +void DEG_graph_id_tag_update(struct Main *bmain, + struct Depsgraph *depsgraph, + struct ID *id, + int flag); + /* Tag given ID type for update. * * Used by all sort of render engines to quickly check if diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc b/source/blender/depsgraph/intern/depsgraph_tag.cc index 113b927d528..8c7afa89033 100644 --- a/source/blender/depsgraph/intern/depsgraph_tag.cc +++ b/source/blender/depsgraph/intern/depsgraph_tag.cc @@ -416,6 +416,15 @@ void DEG_id_tag_update_ex(Main *bmain, ID *id, int flag) DEG::deg_id_tag_update(bmain, id, flag); } +void DEG_graph_id_tag_update(struct Main *bmain, + struct Depsgraph *depsgraph, + struct ID *id, + int flag) +{ + DEG::Depsgraph *graph = (DEG::Depsgraph *)depsgraph; + DEG::deg_graph_id_tag_update(bmain, graph, id, flag); +} + /* Tag given ID type for update. */ void DEG_id_type_tag(Main *bmain, short id_type) { |