Added explicit braces to avoid dangling else warning

This commit is contained in:
Paolo Cignoni 2016-07-15 11:06:57 +02:00
parent bdec7f527c
commit 6ec5b3373b
1 changed files with 2 additions and 2 deletions

View File

@ -1561,12 +1561,12 @@ namespace vcg
} }
glEnable(GL_COLOR_MATERIAL); glEnable(GL_COLOR_MATERIAL);
if ((isgloptsvalid) && ((glopts->_perpoint_fixed_color_enabled) || (glopts->_perpoint_mesh_color_enabled))) if ((isgloptsvalid) && ((glopts->_perpoint_fixed_color_enabled) || (glopts->_perpoint_mesh_color_enabled))){
if (glopts->_perpoint_fixed_color_enabled) if (glopts->_perpoint_fixed_color_enabled)
glColor(glopts->_perpoint_fixed_color); glColor(glopts->_perpoint_fixed_color);
else else
glColor(_mesh.C()); glColor(_mesh.C());
}
if (req[INT_ATT_NAMES::ATT_VERTCOLOR]) if (req[INT_ATT_NAMES::ATT_VERTCOLOR])
glColorMaterial(GL_FRONT_AND_BACK,GL_AMBIENT_AND_DIFFUSE); glColorMaterial(GL_FRONT_AND_BACK,GL_AMBIENT_AND_DIFFUSE);