corrected small nasty bug in the rarely used compact edge vector...

This commit is contained in:
Paolo Cignoni 2011-11-07 15:41:59 +00:00
parent 5fee62fbb1
commit 34921eb3ba
1 changed files with 1 additions and 1 deletions

View File

@ -713,7 +713,7 @@ namespace vcg {
// the actual copying of the data.
for(unsigned int i=0;i<m.edge.size();++i)
{
if(pu.remap[i]<size_t(m.vn)) // uninitialized entries in the remap vector has max_int value;
if(pu.remap[i]<size_t(m.en)) // uninitialized entries in the remap vector has max_int value;
{
assert(!m.edge[i].IsD());
m.edge[ pu.remap [i] ].ImportData(m.edge[i]);