diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-09-19 16:21:51 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-09-19 17:10:12 +0300 |
commit | afb4da6650daeb8b8ac5fe9d3a6439c3433d7dc5 (patch) | |
tree | e98a5ce287522896b088257e45ae18f1f731709d /source/blender/depsgraph/intern/depsgraph_query_iter.cc | |
parent | cc061d349b253583d8120e6e7be56d09f96c639e (diff) |
Despgraph: Keep track of per-component visibility
The idea of those flags is to avoid evaluation of operations
which are not needed to bring visible objects to an up to date
state.
Previously, dependency graph attempted to do combine those
into an ID level flag. In practice it proved to be rather
tricky, since there could be dependency cycles on ID level
which will not exist on component level.
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_query_iter.cc')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_query_iter.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_query_iter.cc b/source/blender/depsgraph/intern/depsgraph_query_iter.cc index 791e5edbfc6..ac3122d2159 100644 --- a/source/blender/depsgraph/intern/depsgraph_query_iter.cc +++ b/source/blender/depsgraph/intern/depsgraph_query_iter.cc @@ -163,7 +163,7 @@ void deg_iterator_objects_step(BLI_Iterator *iter, DEG::IDDepsNode *id_node) /* Set it early in case we need to exit and we are running from within a loop. */ iter->skip = true; - if (!id_node->is_visible) { + if (!id_node->is_directly_visible) { return; } @@ -302,7 +302,7 @@ static void DEG_iterator_ids_step(BLI_Iterator *iter, DEG::IDDepsNode *id_node, { ID *id_cow = id_node->id_cow; - if (!id_node->is_visible) { + if (!id_node->is_directly_visible) { iter->skip = true; return; } |