[Bf-blender-cvs] [d6ff7787803] blender2.8: Fix crash enabling disabled collection containing curves.
Brecht Van Lommel
noreply at git.blender.org
Fri Jul 27 14:18:35 CEST 2018
Commit: d6ff77878039a5c3848482c6a82ff626d4b3872c
Author: Brecht Van Lommel
Date: Fri Jul 27 14:13:47 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBd6ff77878039a5c3848482c6a82ff626d4b3872c
Fix crash enabling disabled collection containing curves.
Fixes T55948, T56016, T55926, T55947.
Differential Revision: https://developer.blender.org/D3564
===================================================================
M source/blender/depsgraph/intern/builder/deg_builder.cc
===================================================================
diff --git a/source/blender/depsgraph/intern/builder/deg_builder.cc b/source/blender/depsgraph/intern/builder/deg_builder.cc
index 4cbc7700947..8f5925a5ce3 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder.cc
@@ -67,6 +67,12 @@ void deg_graph_build_finalize(Main *bmain, Depsgraph *graph)
}
if (!deg_copy_on_write_is_expanded(id_node->id_cow)) {
flag |= DEG_TAG_COPY_ON_WRITE;
+ /* This means ID is being added to the dependency graph first
+ * time, which is similar to "ob-visible-change"
+ */
+ if (GS(id->name) == ID_OB) {
+ flag |= OB_RECALC_OB | OB_RECALC_DATA;
+ }
}
if (flag != 0) {
DEG_graph_id_tag_update(bmain,
More information about the Bf-blender-cvs
mailing list