From f23c966e242bfe736cc9ef697c708df0aa54fe13 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 26 Oct 2017 09:42:54 +0200 Subject: Fix / workaround T53164: Crashes with background scenes Simple workaround in on_visible_update(). There might be more missing updates or tags. --- source/blender/depsgraph/intern/depsgraph_tag.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'source') 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 */ -- cgit v1.2.3