From da757efdd320803ddc28622fbd233bbb33def6bf Mon Sep 17 00:00:00 2001 From: ganovelli Date: Fri, 8 Oct 2010 16:51:45 +0000 Subject: [PATCH] bug fixed (final): CompactFaceVector resized the attributes per face to the number of "vertices" of the mesh --- vcg/complex/trimesh/allocate.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcg/complex/trimesh/allocate.h b/vcg/complex/trimesh/allocate.h index 67136c5d..59a943a1 100644 --- a/vcg/complex/trimesh/allocate.h +++ b/vcg/complex/trimesh/allocate.h @@ -73,10 +73,10 @@ namespace vcg { } template - void ResizeAttribute(ATTR_CONT &c,const int & /* sz */, MeshType &m){ + void ResizeAttribute(ATTR_CONT &c,const int & sz , MeshType &m){ typename std::set::iterator ai; for(ai =c.begin(); ai != c.end(); ++ai) - ((typename MeshType::PointerToAttribute)(*ai)).Resize(m.vn); + ((typename MeshType::PointerToAttribute)(*ai)).Resize(sz); } /*@{*/