corrected bug on appending perFace and perEdge attributes

(thanks to Minghua Nie for pointing it out).
This commit is contained in:
ganovelli 2013-03-11 11:53:26 +00:00
parent 5c7608030f
commit 4253c2f3b6
1 changed files with 2 additions and 2 deletions

View File

@ -353,7 +353,7 @@ static void Mesh(MeshLeft& ml, ConstMeshRight& mr, const bool selected = false,
id_r = 0;
for(ei=mr.edge.begin();ei!=mr.edge.end();++ei,++id_r)
if( !(*ei).IsD() && (!selected || (*ei).IsS()))
memcpy((*al)._handle->At(remap.vert[Index(mr,*ei)]),(*ar)._handle->At(id_r),
memcpy((*al)._handle->At(remap.edge[Index(mr,*ei)]),(*ar)._handle->At(id_r),
(*al)._handle->SizeOf());
}
}
@ -366,7 +366,7 @@ static void Mesh(MeshLeft& ml, ConstMeshRight& mr, const bool selected = false,
id_r = 0;
for(fi=mr.face.begin();fi!=mr.face.end();++fi,++id_r)
if( !(*fi).IsD() && (!selected || (*fi).IsS()))
memcpy((*al)._handle->At(remap.vert[Index(mr,*fi)]),(*ar)._handle->At(id_r),
memcpy((*al)._handle->At(remap.face[Index(mr,*fi)]),(*ar)._handle->At(id_r),
(*al)._handle->SizeOf());
}
}