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.
This commit is contained in:
2018-12-23 00:11:42 +01:00
parent 3bc87227f5
commit 44e3fc66c7

View File

@@ -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);