bug fixed (final): CompactFaceVector resized the attributes per face

to the number of "vertices" of the mesh
This commit is contained in:
ganovelli 2010-10-08 16:51:45 +00:00
parent 354b225e92
commit da757efdd3
1 changed files with 2 additions and 2 deletions

View File

@ -73,10 +73,10 @@ namespace vcg {
}
template <class MeshType, class ATTR_CONT>
void ResizeAttribute(ATTR_CONT &c,const int & /* sz */, MeshType &m){
void ResizeAttribute(ATTR_CONT &c,const int & sz , MeshType &m){
typename std::set<typename MeshType::PointerToAttribute>::iterator ai;
for(ai =c.begin(); ai != c.end(); ++ai)
((typename MeshType::PointerToAttribute)(*ai)).Resize(m.vn);
((typename MeshType::PointerToAttribute)(*ai)).Resize(sz);
}
/*@{*/