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,12 +600,14 @@ namespace tri {
assert(!m.vert[i].IsD());
m.vert[ pu.remap [i] ].ImportData(m.vert[i]);
if(HasVFAdjacency(m))
{
if (m.vert[i].IsVFInitialized())
{
m.vert[ pu.remap[i] ].VFp() = m.vert[i].cVFp();
m.vert[ pu.remap[i] ].VFi() = m.vert[i].cVFi();
}
else m.vert [ pu.remap[i] ].VFClear();
}
}
}