hidden-wire draw option: always use the cage when masking out faces otherwise modifiers give odd results.

This commit is contained in:
Campbell Barton 2013-07-22 21:45:01 +00:00
parent 0682ade250
commit 1b85328545

@ -3132,8 +3132,9 @@ static void draw_em_fancy(Scene *scene, ARegion *ar, View3D *v3d,
}
else if (dt > OB_WIRE) {
if (use_occlude_wire) {
/* use the cageDM since it always overlaps the editmesh faces */
glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE);
finalDM->drawMappedFaces(finalDM, draw_em_fancy__setFaceOpts,
cageDM->drawMappedFaces(cageDM, draw_em_fancy__setFaceOpts,
GPU_enable_material, NULL, me->edit_btmesh, 0);
glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
}