From 44e3fc66c7ef30390e7af8deaeff904ff0ef8adb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Sun, 23 Dec 2018 00:11:42 +0100 Subject: Edit Mode Selection: Make Vertices not occluded by edges Debugging the edit mode selection I realized the vertices are often occluded by edges with the same depth. Sometime it can be the center pixel of a vertex point and that can lead to some selection issue. So I increased the offset a bit for the vertices and it seems to fix it. --- source/blender/editors/space_view3d/drawobject.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/editors/space_view3d') diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index f778021a2db..ea19c734940 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -319,6 +319,8 @@ void draw_object_backbufsel( bm_wireoffs = bm_solidoffs; } + ED_view3d_polygon_offset(rv3d, 1.1); + /* we draw verts if vert select mode. */ if (select_mode & SCE_SELECT_VERTEX) { bbs_mesh_verts(geom_verts, bm_wireoffs); -- cgit v1.2.3