diff options
author | Germano <germano.costa@ig.com.br> | 2017-12-08 17:43:52 +0300 |
---|---|---|
committer | Germano <germano.costa@ig.com.br> | 2017-12-08 17:43:52 +0300 |
commit | f57317c6e74c8f7b0fbcc561f6a8d800bdab8296 (patch) | |
tree | a7b53e5c7a78cc0a9369ef291864814a5d3dd690 /source/blender/editors/space_view3d/drawobject.c | |
parent | 8817faa02d011637dd6fa136fcdf93ef4de7e32d (diff) | |
parent | e6838ecc260441dcba0abfcd8a8292b94081df64 (diff) |
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/editors/space_view3d/drawobject.c')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index 08ef9cc21cb..c1e45f8280f 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -9769,8 +9769,9 @@ void draw_object_backbufsel( bbs_mesh_solid_EM(em, scene, v3d, ob, dm, (ts->selectmode & SCE_SELECT_FACE) != 0); if (ts->selectmode & SCE_SELECT_FACE) bm_solidoffs = 1 + em->bm->totface; - else + else { bm_solidoffs = 1; + } ED_view3d_polygon_offset(rv3d, 1.0); @@ -9779,6 +9780,10 @@ void draw_object_backbufsel( bbs_mesh_wire(em, dm, bm_solidoffs); bm_wireoffs = bm_solidoffs + em->bm->totedge; } + else { + /* `bm_vertoffs` is calculated from `bm_wireoffs`. (otherwise see T53512) */ + bm_wireoffs = bm_solidoffs; + } /* we draw verts if vert select mode. */ if (ts->selectmode & SCE_SELECT_VERTEX) { |