diff --git a/src/MeshTools/Transform.h b/src/MeshTools/Transform.h index 9ad5b3ceb..c269fe71a 100644 --- a/src/MeshTools/Transform.h +++ b/src/MeshTools/Transform.h @@ -35,8 +35,8 @@ MeshTools::transform(Matrix4::scaling({2.0f, 0.5f, 0.0f}), vertices); @endcode */ template inline void transform(const Math::Matrix& matrix, U& vertices) { - for(Math::Vector& vertex: vertices) - vertex = matrix*vertex; + for(auto it = vertices.begin(); it != vertices.end(); ++it) + *it = matrix**it; } }}