From 72d67f4a1111c1529cc6ab251ff5bd981130dcc3 Mon Sep 17 00:00:00 2001 From: cignoni Date: Wed, 20 Mar 2013 08:28:30 +0000 Subject: [PATCH] Added parenthesis to clearly disambiguate if/then/else --- vcg/complex/allocate.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vcg/complex/allocate.h b/vcg/complex/allocate.h index e05917fd..dc554ea8 100644 --- a/vcg/complex/allocate.h +++ b/vcg/complex/allocate.h @@ -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(); + } } }