Made sure in vpaint, wpaint and tpaint the "draw extra wire" shows identical

as for non-paint drawmodes. I guess this exception was from period before
we had subsurfed paint drawing... right daniel?
This commit is contained in:
2005-09-24 14:27:32 +00:00
parent 1a82b405fd
commit abe9799c47

View File

@@ -1756,11 +1756,12 @@ static void draw_mesh_fancy(Object *ob, DerivedMesh *baseDM, DerivedMesh *dm, in
glDepthMask(0); // disable write in zbuffer, selected edge wires show better
}
if (G.f & (G_VERTEXPAINT|G_WEIGHTPAINT|G_TEXTUREPAINT)) {
baseDM->drawEdges(baseDM, dt==OB_WIRE);
} else {
/* I need advise on this from Daniel... without this code it does it nicer */
// if (G.f & (G_VERTEXPAINT|G_WEIGHTPAINT|G_TEXTUREPAINT)) {
// baseDM->drawEdges(baseDM, dt==OB_WIRE);
// } else {
dm->drawEdges(dm, (dt==OB_WIRE || me->totface==0));
}
// }
if (dt!=OB_WIRE) {
glDepthMask(1);