diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-07-27 15:13:47 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-07-27 15:17:37 +0300 |
commit | d6ff77878039a5c3848482c6a82ff626d4b3872c (patch) | |
tree | 950ffe3235893c3213f53a3c1bbd46e21f8e7cfe /source/blender/depsgraph | |
parent | 0d20207771e76649fcce3766bcfa1634c087caae (diff) |
Fix crash enabling disabled collection containing curves.
Fixes T55948, T56016, T55926, T55947.
Differential Revision: https://developer.blender.org/D3564
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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, |