diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-08 16:48:25 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-08 17:02:19 +0300 |
commit | 19c14f0c8ac6236eedff2a1c5f3581b4fca79bf1 (patch) | |
tree | 2625e4af3ed7e2972e92e39ddfded477d9d546de /source/blender/depsgraph/intern/depsgraph_tag.cc | |
parent | 10f076da2d687a77a317e060bf69d95fb49ad075 (diff) |
Subject: [PATCH 2/3] 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 39505d256ec..607ec675a39 100644 --- a/source/blender/depsgraph/intern/depsgraph_tag.cc +++ b/source/blender/depsgraph/intern/depsgraph_tag.cc @@ -367,8 +367,7 @@ void deg_id_tag_update(Main *bmain, ID *id, int flag) void deg_graph_on_visible_update(Main *bmain, Depsgraph *graph) { /* Make sure objects are up to date. */ - GHASH_FOREACH_BEGIN(DEG::IDDepsNode *, id_node, graph->id_hash) - { + foreach (DEG::IDDepsNode *id_node, graph->id_nodes) { const ID_Type id_type = GS(id_node->id_orig->name); /* TODO(sergey): Special exception for now. */ if (id_type == ID_MSK) { @@ -390,7 +389,6 @@ void deg_graph_on_visible_update(Main *bmain, Depsgraph *graph) } deg_graph_id_tag_update(bmain, graph, id_node->id_orig, flag); } - GHASH_FOREACH_END(); /* Make sure collection properties are up to date. */ for (Scene *scene_iter = graph->scene; scene_iter != NULL; scene_iter = scene_iter->set) { IDDepsNode *scene_id_node = graph->find_id_node(&scene_iter->id); |