- fixed "no per mesh color applied on polygonal wire rendering" bug
This commit is contained in:
parent
5e89a6a5f7
commit
684bb9ecfb
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue