diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-09 13:43:30 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-09 13:43:41 +0300 |
commit | e30972deae74164cc2a9abbd44c8e7a552b98ac1 (patch) | |
tree | b5e41f99ccaf840fca1973395c8a7e499f4e5b39 /source | |
parent | 0ad54b5ba3464856d72fde990773af950a27e986 (diff) |
Depsgraph: Cleanup
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_relations_scene_layer.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations_scene_layer.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations_scene_layer.cc index c0896638164..055c832811b 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_relations_scene_layer.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_relations_scene_layer.cc @@ -128,11 +128,7 @@ void DepsgraphRelationBuilder::build_scene_layer(Scene *scene, SceneLayer *scene build_scene_layer_collections(scene_layer); /* TODO(sergey): Do this flush on CoW object? */ - for (Depsgraph::OperationNodes::const_iterator it_op = graph_->operations.begin(); - it_op != graph_->operations.end(); - ++it_op) - { - OperationDepsNode *node = *it_op; + foreach (OperationDepsNode *node, graph_->operations) { IDDepsNode *id_node = node->owner->owner; ID *id = id_node->id_orig; if (GS(id->name) == ID_OB) { |