diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-07-21 05:25:15 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-07-21 05:27:41 +0300 |
commit | 3c911ff8a582d2bb80d695975930e245d3fb00de (patch) | |
tree | 5dce6c5e8f0a3b6225487b9cc25e575297a3542a | |
parent | 1d9fbdc9a0fd69027c8918de1851f95296eda006 (diff) |
Fix T45450: Loop-select fails to cycle between overlapping edges
-rw-r--r-- | source/blender/editors/mesh/editmesh_select.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c index 0e4630f7029..eac5e3fece0 100644 --- a/source/blender/editors/mesh/editmesh_select.c +++ b/source/blender/editors/mesh/editmesh_select.c @@ -569,7 +569,7 @@ static void find_nearest_edge__doClosest( dist_test = dist_test_bias = len_manhattan_v2v2(data->mval_fl, screen_co); if (data->use_select_bias && BM_elem_flag_test(eed, BM_ELEM_SELECT)) { - dist_test += FIND_NEAR_SELECT_BIAS; + dist_test_bias += FIND_NEAR_SELECT_BIAS; } if (data->vc.rv3d->rflag & RV3D_CLIPPING) { @@ -703,7 +703,7 @@ BMEdge *EDBM_edge_find_nearest_ex( BMEdge *EDBM_edge_find_nearest( ViewContext *vc, float *r_dist) { - return EDBM_edge_find_nearest_ex(vc, r_dist, false, false, false, NULL); + return EDBM_edge_find_nearest_ex(vc, r_dist, NULL, false, false, NULL); } /* find the distance to the face we already have */ @@ -1567,7 +1567,7 @@ static bool mouse_mesh_loop(bContext *C, const int mval[2], bool extend, bool de /* no afterqueue (yet), so we check it now, otherwise the bm_xxxofs indices are bad */ ED_view3d_backbuf_validate(&vc); - eed = EDBM_edge_find_nearest(&vc, &dist); + eed = EDBM_edge_find_nearest_ex(&vc, &dist, NULL, true, true, NULL); if (eed == NULL) { return false; } |