Added parenthesis to clearly disambiguate if/then/else

This commit is contained in:
Paolo Cignoni 2013-03-20 08:28:30 +00:00
parent ba58ef9c1e
commit 72d67f4a11
1 changed files with 2 additions and 0 deletions

View File

@ -600,6 +600,7 @@ namespace tri {
assert(!m.vert[i].IsD()); assert(!m.vert[i].IsD());
m.vert[ pu.remap [i] ].ImportData(m.vert[i]); m.vert[ pu.remap [i] ].ImportData(m.vert[i]);
if(HasVFAdjacency(m)) if(HasVFAdjacency(m))
{
if (m.vert[i].IsVFInitialized()) if (m.vert[i].IsVFInitialized())
{ {
m.vert[ pu.remap[i] ].VFp() = m.vert[i].cVFp(); m.vert[ pu.remap[i] ].VFp() = m.vert[i].cVFp();
@ -608,6 +609,7 @@ namespace tri {
else m.vert [ pu.remap[i] ].VFClear(); else m.vert [ pu.remap[i] ].VFClear();
} }
} }
}
// reorder the optional atttributes in m.vert_attr to reflect the changes // reorder the optional atttributes in m.vert_attr to reflect the changes
ReorderAttribute(m.vert_attr,pu.remap,m); ReorderAttribute(m.vert_attr,pu.remap,m);