Fix / workaround T53164: Crashes with background scenes

Simple workaround in on_visible_update(). There might be more missing updates or tags.
This commit is contained in:
Sergey Sharybin
2017-10-26 09:42:54 +02:00
parent cd3c31b2c0
commit f23c966e24

View File

@@ -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 */