diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-08 16:48:25 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-12-18 18:14:50 +0300 |
commit | c5d9eb88e21001bccf039e5d9ed746a9280302a1 (patch) | |
tree | ab87d9ce5c36a9a2452ce62465d11442c150e544 /source/blender/depsgraph/intern/depsgraph_tag.cc | |
parent | 8fe556a337792b7d3bba6e2c3a03820d65d8a2b9 (diff) |
Depsgraph: Replace iteration over ghash with iteration over flat array
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_tag.cc')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_tag.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc b/source/blender/depsgraph/intern/depsgraph_tag.cc index 79c30e7904d..2979cf7270d 100644 --- a/source/blender/depsgraph/intern/depsgraph_tag.cc +++ b/source/blender/depsgraph/intern/depsgraph_tag.cc @@ -292,8 +292,7 @@ void DEG_graph_on_visible_update(Main *bmain, Scene *scene) * This is mainly needed on file load only, after that updates of invisible objects * will be stored in the pending list. */ - GHASH_FOREACH_BEGIN(DEG::IDDepsNode *, id_node, graph->id_hash) - { + foreach (DEG::IDDepsNode *id_node, graph->id_nodes) { ID *id = id_node->id; if ((id->recalc & ID_RECALC_ALL) != 0 || (id_node->layers & scene->lay_updated) == 0) @@ -319,7 +318,6 @@ 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, |