diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-03 19:03:33 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-06 11:24:23 +0300 |
commit | 1b4024331640cbbfb3b2774e09e02e6527341ab5 (patch) | |
tree | 716d6169f94ee289bc8dbffc8c1dedc336b9fc3b /source | |
parent | 3330e518dc7ad941ec10e3c99eb6d051716cfefe (diff) |
Depsgraph: Cleanup, remove depsgraph_legacy from building routines
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_build.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_build.cc b/source/blender/depsgraph/intern/depsgraph_build.cc index 70799a81835..d58f61a5077 100644 --- a/source/blender/depsgraph/intern/depsgraph_build.cc +++ b/source/blender/depsgraph/intern/depsgraph_build.cc @@ -52,6 +52,7 @@ extern "C" { #include "BKE_collision.h" #include "BKE_effect.h" #include "BKE_modifier.h" +#include "BKE_scene.h" } /* extern "C" */ #include "DEG_depsgraph.h" @@ -272,12 +273,12 @@ void DEG_graph_relations_update(Depsgraph *graph, Main *bmain, Scene *scene) void DEG_relations_tag_update(Main *bmain) { DEG_DEBUG_PRINTF("%s: Tagging relations for update.\n", __func__); - for (Scene *scene = (Scene *)bmain->scene.first; - scene != NULL; - scene = (Scene *)scene->id.next) - { - if (scene->depsgraph_legacy != NULL) { - DEG_graph_tag_relations_update(scene->depsgraph_legacy); + LINKLIST_FOREACH(Scene *, scene, &bmain->scene) { + LINKLIST_FOREACH(SceneLayer *, scene_layer, &scene->render_layers) { + Depsgraph *depsgraph = (Depsgraph *)BKE_scene_get_depsgraph(scene, scene_layer); + if (depsgraph != NULL) { + DEG_graph_tag_relations_update(depsgraph); + } } } } |