[Bf-blender-cvs] [44e3fc66c7e] master: Edit Mode Selection: Make Vertices not occluded by edges
Clément Foucault
noreply at git.blender.org
Fri Jan 11 16:00:39 CET 2019
Commit: 44e3fc66c7ef30390e7af8deaeff904ff0ef8adb
Author: Clément Foucault
Date: Sun Dec 23 00:11:42 2018 +0100
Branches: master
https://developer.blender.org/rB44e3fc66c7ef30390e7af8deaeff904ff0ef8adb
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.
===================================================================
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 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);
More information about the Bf-blender-cvs
mailing list