From c5d9eb88e21001bccf039e5d9ed746a9280302a1 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 8 Nov 2017 14:48:25 +0100 Subject: Depsgraph: Replace iteration over ghash with iteration over flat array --- source/blender/depsgraph/intern/depsgraph_debug.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/blender/depsgraph/intern/depsgraph_debug.cc') diff --git a/source/blender/depsgraph/intern/depsgraph_debug.cc b/source/blender/depsgraph/intern/depsgraph_debug.cc index 0b1156a78ba..f6f3cd06708 100644 --- a/source/blender/depsgraph/intern/depsgraph_debug.cc +++ b/source/blender/depsgraph/intern/depsgraph_debug.cc @@ -197,8 +197,7 @@ void DEG_stats_simple(const Depsgraph *graph, size_t *r_outer, size_t tot_outer = 0; size_t tot_rels = 0; - GHASH_FOREACH_BEGIN(DEG::IDDepsNode *, id_node, deg_graph->id_hash) - { + foreach (DEG::IDDepsNode *id_node, deg_graph->id_nodes) { tot_outer++; GHASH_FOREACH_BEGIN(DEG::ComponentDepsNode *, comp_node, id_node->components) { @@ -209,7 +208,6 @@ void DEG_stats_simple(const Depsgraph *graph, size_t *r_outer, } GHASH_FOREACH_END(); } - GHASH_FOREACH_END(); DEG::TimeSourceDepsNode *time_source = deg_graph->find_time_source(); if (time_source != NULL) { -- cgit v1.2.3