[Bf-blender-cvs] [a247b367b0f] master: Fix T51761: wpaint select depth limit fails
Campbell Barton
noreply at git.blender.org
Tue Jul 11 05:59:16 CEST 2017
Commit: a247b367b0f7c0486ed8eef4c2a5a753e963ea6c
Author: Campbell Barton
Date: Tue Jul 11 14:05:59 2017 +1000
Branches: master
https://developer.blender.org/rBa247b367b0f7c0486ed8eef4c2a5a753e963ea6c
Fix T51761: wpaint select depth limit fails
Limit select fails with circle and border select.
Regression in 2.76
===================================================================
M source/blender/editors/space_view3d/drawobject.c
===================================================================
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index 3f11703973d..73fd77db477 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -8378,9 +8378,13 @@ static void bbs_mesh_solid_verts(Scene *scene, Object *ob)
DM_update_materials(dm, ob);
- dm->drawMappedFaces(dm, bbs_mesh_solid_hide2__setDrawOpts, GPU_object_material_bind, NULL, me, DM_DRAW_SKIP_HIDDEN);
+ /* Only draw faces to mask out verts, we don't want their selection ID's. */
+ const int G_f_orig = G.f;
+ G.f &= ~G_BACKBUFSEL;
- GPU_object_material_unbind();
+ dm->drawMappedFaces(dm, bbs_mesh_solid_hide2__setDrawOpts, NULL, NULL, me, DM_DRAW_SKIP_HIDDEN);
+
+ G.f |= (G_f_orig & G_BACKBUFSEL);
bbs_obmode_mesh_verts(ob, dm, 1);
bm_vertoffs = me->totvert + 1;
More information about the Bf-blender-cvs
mailing list