From 82ce871150b1aaa9a63eb670fa782d0a989c9868 Mon Sep 17 00:00:00 2001 From: alemuntoni Date: Fri, 19 Mar 2021 13:16:48 +0100 Subject: [PATCH] const GetAllAttributeHandle --- vcg/complex/allocate.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 )