Commit 40d09648 authored by Jan Möbius's avatar Jan Möbius
Browse files

Use ranges for Object Iteration to simplify code

parent 92e4532f
......@@ -120,9 +120,7 @@ void DeserializeScreenshotMetadataPlugin::slot_do_restore_from_screenshot() {
QVariantMap materials = ACG::json_to_variant_map(materials_json);
QMap<QString, ACG::SceneGraph::Material*> objname_to_material;
for (PluginFunctions::ObjectIterator
o_it(PluginFunctions::ALL_OBJECTS, DATA_ALL);
o_it != PluginFunctions::objectsEnd(); ++o_it) {
for (auto* o_it : PluginFunctions::objects(PluginFunctions::ALL_OBJECTS,DATA_ALL) ) {
if (!o_it->materialNode()) continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment