diff --git a/src/SceneGraph/Object.hpp b/src/SceneGraph/Object.hpp index be80d9c4c..7282b2d5f 100644 --- a/src/SceneGraph/Object.hpp +++ b/src/SceneGraph/Object.hpp @@ -335,7 +335,8 @@ template void Object::setClean(std::vector } /* Cleanup all marks */ - for(auto o: objects) o->flags &= ~Flag::Visited; + for(auto it = objects.begin(); it != objects.end(); ++it) + (*it)->flags &= ~Flag::Visited; /* Compute absolute transformations */ Scene* scene = objects[0]->scene();