From 354b225e920da11664a845c63440a72fbfab5052 Mon Sep 17 00:00:00 2001 From: ganovelli Date: Fri, 8 Oct 2010 15:58:32 +0000 Subject: [PATCH] bug fixed: CompactFaceVector resized the attributes per face to the number of "vertices" of the mesh --- vcg/complex/trimesh/allocate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcg/complex/trimesh/allocate.h b/vcg/complex/trimesh/allocate.h index 367fa843..67136c5d 100644 --- a/vcg/complex/trimesh/allocate.h +++ b/vcg/complex/trimesh/allocate.h @@ -719,7 +719,7 @@ namespace vcg { // Loop on the faces to correct VF and FF relations m.face.resize(m.fn); // resize the optional atttributes in m.face_attr to reflect the changes - ResizeAttribute(m.face_attr,m.vn,m); + ResizeAttribute(m.face_attr,m.fn,m); FaceIterator fi; for(fi=m.face.begin();fi!=m.face.end();++fi)