Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-07-23 01:45:01 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-07-23 01:45:01 +0400
commit1b853285451b66890b35a4a31d90038f34218c85 (patch)
treef5dad155174762a5482f96412f0f13597571df61 /source/blender/editors/space_view3d/drawobject.c
parent0682ade250a55158b4b5cffbea4de994e373c459 (diff)
hidden-wire draw option: always use the cage when masking out faces otherwise modifiers give odd results.
Diffstat (limited to 'source/blender/editors/space_view3d/drawobject.c')
-rw-r--r--source/blender/editors/space_view3d/drawobject.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index dca1160b194..38386a5c267 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -3132,9 +3132,10 @@ 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,
- GPU_enable_material, NULL, me->edit_btmesh, 0);
+ cageDM->drawMappedFaces(cageDM, draw_em_fancy__setFaceOpts,
+ GPU_enable_material, NULL, me->edit_btmesh, 0);
glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
}
else if (check_object_draw_texture(scene, v3d, dt)) {