diff options
author | Ray Molenkamp <github@lazydodo.com> | 2018-09-25 17:35:31 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2018-09-25 17:35:31 +0300 |
commit | 2f00f5b98f99d0e417645ff2689f51247d5def94 (patch) | |
tree | 919a7e7d58398892830cc17d4f049d753714585b /source/blender/depsgraph/intern/depsgraph_query_filter.cc | |
parent | e61861e393b28b4db2ea0877509abdcf44edb283 (diff) |
despgraph: Use regular iterators for erase, fixes build error on centOS
CentOS7 ships with gcc 4.8.2 which does not support the const_iterator for erase.
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_query_filter.cc')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_query_filter.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_query_filter.cc b/source/blender/depsgraph/intern/depsgraph_query_filter.cc index 11858bd1b1c..83963e7e5b2 100644 --- a/source/blender/depsgraph/intern/depsgraph_query_filter.cc +++ b/source/blender/depsgraph/intern/depsgraph_query_filter.cc @@ -137,7 +137,7 @@ static void deg_filter_remove_unwanted_ids(Depsgraph *graph, GSet *retained_ids) } /* 2) Remove unwanted operations from graph->operations */ - for (Depsgraph::OperationNodes::const_iterator it_opnode = graph->operations.begin(); + for (Depsgraph::OperationNodes::iterator it_opnode = graph->operations.begin(); it_opnode != graph->operations.end(); ) { @@ -157,7 +157,7 @@ static void deg_filter_remove_unwanted_ids(Depsgraph *graph, GSet *retained_ids) * However, we don't worry about the conditional freeing for physics * stuff, since it's rarely needed currently. */ - for (Depsgraph::IDDepsNodes::const_iterator it_id = graph->id_nodes.begin(); + for (Depsgraph::IDDepsNodes::iterator it_id = graph->id_nodes.begin(); it_id != graph->id_nodes.end(); ) { |