- 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;
|
return;
|
||||||
glPushAttrib(GL_ALL_ATTRIB_BITS);
|
glPushAttrib(GL_ALL_ATTRIB_BITS);
|
||||||
|
|
||||||
|
|
||||||
bool isgloptsvalid = (glopts != NULL);
|
bool isgloptsvalid = (glopts != NULL);
|
||||||
|
|
||||||
glEnable(GL_COLOR_MATERIAL);
|
glEnable(GL_COLOR_MATERIAL);
|
||||||
|
@ -1752,7 +1751,12 @@ namespace vcg
|
||||||
{
|
{
|
||||||
vcg::Color4b tmpcol = vcg::Color4b(vcg::Color4b::DarkGray);
|
vcg::Color4b tmpcol = vcg::Color4b(vcg::Color4b::DarkGray);
|
||||||
if (colordefinedenabled)
|
if (colordefinedenabled)
|
||||||
|
{
|
||||||
|
if (glopts->_perwire_fixed_color_enabled)
|
||||||
tmpcol = glopts->_perwire_fixed_color;
|
tmpcol = glopts->_perwire_fixed_color;
|
||||||
|
else
|
||||||
|
tmpcol = _mesh.cC();
|
||||||
|
}
|
||||||
glColor(tmpcol);
|
glColor(tmpcol);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue