diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-12-21 10:16:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-21 10:17:59 +0300 |
commit | be619b588860d26dc818e518647778f225dc320c (patch) | |
tree | 6248d9f95c11792a6285c0489c7cbec183ff9be4 /source | |
parent | 63fcbfc3a7325d79b9e916457d64c302ddfeadfa (diff) |
Fix bug selecting verts in mixed edge/vert mode
Own regression from 2.7x when adding multi-object select support.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/mesh/editmesh_select.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c index fdd8a124652..e522c8849c7 100644 --- a/source/blender/editors/mesh/editmesh_select.c +++ b/source/blender/editors/mesh/editmesh_select.c @@ -984,7 +984,7 @@ static bool unified_findnearest( ED_view3d_backbuf_validate(vc); BMFace *efa_zbuf = NULL; BMFace *efa_test = EDBM_face_find_nearest_ex(vc, &dist, dist_center_p, true, use_cycle, &efa_zbuf); - if (hit.f.ele && dist_center_p) { + if (efa_test && dist_center_p) { dist = min_ff(dist_margin, dist_center); } if (efa_test) { @@ -1009,7 +1009,7 @@ static bool unified_findnearest( ED_view3d_backbuf_validate(vc); BMEdge *eed_zbuf = NULL; BMEdge *eed_test = EDBM_edge_find_nearest_ex(vc, &dist, dist_center_p, true, use_cycle, &eed_zbuf); - if (hit.e.ele && dist_center_p) { + if (eed_test && dist_center_p) { dist = min_ff(dist_margin, dist_center); } if (eed_test) { |