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/debug/deg_debug_graphviz.cc | |
parent | 8fe556a337792b7d3bba6e2c3a03820d65d8a2b9 (diff) |
Depsgraph: Replace iteration over ghash with iteration over flat array
Diffstat (limited to 'source/blender/depsgraph/intern/debug/deg_debug_graphviz.cc')
-rw-r--r-- | source/blender/depsgraph/intern/debug/deg_debug_graphviz.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/depsgraph/intern/debug/deg_debug_graphviz.cc b/source/blender/depsgraph/intern/debug/deg_debug_graphviz.cc index d7457b9eb6c..528758daeb2 100644 --- a/source/blender/depsgraph/intern/debug/deg_debug_graphviz.cc +++ b/source/blender/depsgraph/intern/debug/deg_debug_graphviz.cc @@ -497,11 +497,9 @@ static void deg_debug_graphviz_node_relations(const DebugContext &ctx, static void deg_debug_graphviz_graph_nodes(const DebugContext &ctx, const Depsgraph *graph) { - GHASH_FOREACH_BEGIN (DepsNode *, node, graph->id_hash) - { + foreach (DepsNode *node, graph->id_nodes) { deg_debug_graphviz_node(ctx, node); } - GHASH_FOREACH_END(); TimeSourceDepsNode *time_source = graph->find_time_source(); if (time_source != NULL) { deg_debug_graphviz_node(ctx, time_source); @@ -511,8 +509,7 @@ static void deg_debug_graphviz_graph_nodes(const DebugContext &ctx, static void deg_debug_graphviz_graph_relations(const DebugContext &ctx, const Depsgraph *graph) { - GHASH_FOREACH_BEGIN(IDDepsNode *, id_node, graph->id_hash) - { + foreach (IDDepsNode *id_node, graph->id_nodes) { GHASH_FOREACH_BEGIN(ComponentDepsNode *, comp_node, id_node->components) { foreach (OperationDepsNode *op_node, comp_node->operations) { @@ -521,7 +518,6 @@ static void deg_debug_graphviz_graph_relations(const DebugContext &ctx, } GHASH_FOREACH_END(); } - GHASH_FOREACH_END(); TimeSourceDepsNode *time_source = graph->find_time_source(); if (time_source != NULL) { |