[Bf-blender-cvs] [63e21e7218d] blender-v2.79-release: Fix T52454: Crash in DEG_graph_on_visible_update when activating scene layer
Sergey Sharybin
noreply at git.blender.org
Mon Sep 4 13:12:06 CEST 2017
Commit: 63e21e7218dcb4386cc224f3c3a8a5c4570ef712
Author: Sergey Sharybin
Date: Tue Aug 22 12:52:28 2017 +0200
Branches: blender-v2.79-release
https://developer.blender.org/rB63e21e7218dcb4386cc224f3c3a8a5c4570ef712
Fix T52454: Crash in DEG_graph_on_visible_update when activating scene layer
Most likely needs in 2.79 final release.
===================================================================
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 31b4bbc7950..b30110732a2 100644
--- a/source/blender/depsgraph/intern/depsgraph_tag.cc
+++ b/source/blender/depsgraph/intern/depsgraph_tag.cc
@@ -347,6 +347,12 @@ void DEG_graph_on_visible_update(Main *bmain, Scene *scene)
GHASH_FOREACH_END();
}
scene->lay_updated |= graph->layers;
+ /* If graph is tagged for update, we don't need to bother with updates here,
+ * nodes will be re-created.
+ */
+ if (graph->need_update) {
+ return;
+ }
/* Special trick to get local view to work. */
LINKLIST_FOREACH (Base *, base, &scene->base) {
Object *object = base->object;
More information about the Bf-blender-cvs
mailing list