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:
authorClément Foucault <foucault.clem@gmail.com>2018-12-23 02:11:42 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-01-11 18:00:23 +0300
commit44e3fc66c7ef30390e7af8deaeff904ff0ef8adb (patch)
tree2959f6763f084449b76aa4a6d30c42f6cdca7c62 /source/blender/editors/space_view3d/drawobject.c
parent3bc87227f51548e0c781f5747bd2c8a66bb9cea3 (diff)
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.
Diffstat (limited to 'source/blender/editors/space_view3d/drawobject.c')
-rw-r--r--source/blender/editors/space_view3d/drawobject.c2
1 files changed, 2 insertions, 0 deletions
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);