- fixed "no per mesh color applied on polygonal wire rendering" bug

This commit is contained in:
Guido Ranzuglia 2016-09-15 06:10:18 +02:00
parent 5e89a6a5f7
commit 684bb9ecfb
1 changed files with 8 additions and 4 deletions

View File

@ -1732,7 +1732,6 @@ namespace vcg
return;
glPushAttrib(GL_ALL_ATTRIB_BITS);
bool isgloptsvalid = (glopts != NULL);
glEnable(GL_COLOR_MATERIAL);
@ -1752,7 +1751,12 @@ namespace vcg
{
vcg::Color4b tmpcol = vcg::Color4b(vcg::Color4b::DarkGray);
if (colordefinedenabled)
{
if (glopts->_perwire_fixed_color_enabled)
tmpcol = glopts->_perwire_fixed_color;
else
tmpcol = _mesh.cC();
}
glColor(tmpcol);
}