bug fixed (final): CompactFaceVector resized the attributes per face
to the number of "vertices" of the mesh
This commit is contained in:
parent
354b225e92
commit
da757efdd3
|
@ -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);
|
||||
}
|
||||
|
||||
/*@{*/
|
||||
|
|
Loading…
Reference in New Issue