diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-10-24 16:25:41 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-10-24 17:04:11 +0300 |
commit | 1829084da1a47e6080d4b85c2eb94fd2c0b07c27 (patch) | |
tree | b39bfdcad6d343bc01907f1587e0a34e409a42cc /source/blender/depsgraph/intern/depsgraph_tag.cc | |
parent | 72b61763da593fb6a9822f3e37eff9dd2973bf66 (diff) |
Depsgraph: Switch to explicit graph specification for tag flush
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_tag.cc')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_tag.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc b/source/blender/depsgraph/intern/depsgraph_tag.cc index cde87ba126c..8339a765956 100644 --- a/source/blender/depsgraph/intern/depsgraph_tag.cc +++ b/source/blender/depsgraph/intern/depsgraph_tag.cc @@ -431,12 +431,12 @@ void DEG_id_type_tag(Main *bmain, short id_type) bmain->id_tag_update[BKE_idcode_to_index(id_type)] = 1; } -void DEG_scene_flush_update(Main *bmain, Scene *scene) +void DEG_graph_flush_update(Main *bmain, Depsgraph *depsgraph) { - if (scene->depsgraph_legacy == NULL) { + if (depsgraph == NULL) { return; } - DEG::deg_graph_flush_updates(bmain, (DEG::Depsgraph *)scene->depsgraph_legacy); + DEG::deg_graph_flush_updates(bmain, (DEG::Depsgraph *)depsgraph); } /* Update dependency graph when visible scenes/layers changes. */ |