[Bf-blender-cvs] [f23c966e242] blender2.8: Fix / workaround T53164: Crashes with background scenes
Sergey Sharybin
noreply at git.blender.org
Thu Oct 26 09:50:21 CEST 2017
Commit: f23c966e242bfe736cc9ef697c708df0aa54fe13
Author: Sergey Sharybin
Date: Thu Oct 26 09:42:54 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBf23c966e242bfe736cc9ef697c708df0aa54fe13
Fix / workaround T53164: Crashes with background scenes
Simple workaround in on_visible_update(). There might be more missing updates or tags.
===================================================================
M source/blender/depsgraph/intern/depsgraph_tag.cc
===================================================================
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 */
More information about the Bf-blender-cvs
mailing list