diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-09-14 14:23:16 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-09-14 14:23:16 +0300 |
commit | 4bd014e951a1b2c30e035a24eda3fbb32f3fdd62 (patch) | |
tree | 938757b5d7910200b0c1c81b13bf6f2e6bbf433e /source | |
parent | 75f36266df11a482dc5d00d1030bf263593480a8 (diff) |
Depsgraph: Fix crash in masking, related on T52749
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_tag.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc b/source/blender/depsgraph/intern/depsgraph_tag.cc index 839865d0dfb..7bea24d9fd8 100644 --- a/source/blender/depsgraph/intern/depsgraph_tag.cc +++ b/source/blender/depsgraph/intern/depsgraph_tag.cc @@ -365,6 +365,10 @@ void deg_graph_on_visible_update(Main *bmain, Scene *scene, Depsgraph *graph) GHASH_FOREACH_BEGIN(DEG::IDDepsNode *, id_node, graph->id_hash) { const ID_Type id_type = GS(id_node->id_orig->name); + /* TODO(sergey): Special exception for now. */ + if (id_type == ID_MSK) { + deg_graph_id_tag_update(bmain, graph, id_node->id_orig, 0); + } if (id_type != ID_OB) { /* Ignore non-object nodes on visibility changes. */ continue; |