diff options
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_tag.cc')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_tag.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc b/source/blender/depsgraph/intern/depsgraph_tag.cc index 8339a765956..113b927d528 100644 --- a/source/blender/depsgraph/intern/depsgraph_tag.cc +++ b/source/blender/depsgraph/intern/depsgraph_tag.cc @@ -389,9 +389,11 @@ void deg_graph_on_visible_update(Main *bmain, Depsgraph *graph) } GHASH_FOREACH_END(); /* Make sure collection properties are up to date. */ - IDDepsNode *scene_id_node = graph->find_id_node(&graph->scene->id); - BLI_assert(scene_id_node != NULL); - scene_id_node->tag_update(graph); + for (Scene *scene_iter = graph->scene; scene_iter != NULL; scene_iter = scene_iter->set) { + IDDepsNode *scene_id_node = graph->find_id_node(&scene_iter->id); + BLI_assert(scene_id_node != NULL); + scene_id_node->tag_update(graph); + } } } /* namespace */ |