diff --git a/vcg/complex/allocate.h b/vcg/complex/allocate.h index 5ada3e88..fb088206 100644 --- a/vcg/complex/allocate.h +++ b/vcg/complex/allocate.h @@ -1550,7 +1550,7 @@ public: \returns the name of all attributes with a non-empy name. */ template - static void GetAllPerVertexAttribute(MeshType & m, std::vector &all){ + static void GetAllPerVertexAttribute(const MeshType & m, std::vector &all){ all.clear(); typename std::set ::const_iterator i; for(i = m.vert_attr.begin(); i != m.vert_attr.end(); ++i ) @@ -1847,7 +1847,7 @@ public: } template - static void GetAllPerFaceAttribute(MeshType & m, std::vector &all){ + static void GetAllPerFaceAttribute(const MeshType & m, std::vector &all){ all.clear(); typename std::set :: const_iterator i; for(i = m.face_attr.begin(); i != m.face_attr.end(); ++i )