Disabled GL_CULL_FACE in mesh drawing for vertex colors, weight paint.

This made faces hidden with normals pointing inside. Not nice for paint...
This commit is contained in:
Ton Roosendaal
2005-05-28 12:23:40 +00:00
parent 5b014b0c9c
commit 61e22e99d4

View File

@@ -252,7 +252,11 @@ static void meshDM_drawFacesColored(DerivedMesh *dm, int useTwoSide, unsigned ch
useTwoSide= 0;
}
glEnable(GL_CULL_FACE);
/* there's a conflict here... twosided colors versus culling...? */
/* defined by history, only texture faces have culling option */
/* we need that as mesh option builtin, next to double sided lighting */
// glEnable(GL_CULL_FACE);
glShadeModel(GL_SMOOTH);
glBegin(glmode=GL_QUADS);
for(a=start; a<end; a++, mface++, cp1+= 16) {