Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-10-26 10:42:54 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-10-26 10:48:50 +0300
commitf23c966e242bfe736cc9ef697c708df0aa54fe13 (patch)
tree2d8a0e48cda72e7fded9931c9c94974655fa066b /source
parentcd3c31b2c02ed024be2d772e37da73d9aa4dc220 (diff)
Fix / workaround T53164: Crashes with background scenes
Simple workaround in on_visible_update(). There might be more missing updates or tags.
Diffstat (limited to 'source')
-rw-r--r--source/blender/depsgraph/intern/depsgraph_tag.cc8
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 */