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.
This commit is contained in:
Ray molenkamp 2018-09-25 08:35:31 -06:00
parent e61861e393
commit 2f00f5b98f
1 changed files with 2 additions and 2 deletions

View File

@ -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();
)
{