From 3c911ff8a582d2bb80d695975930e245d3fb00de Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 21 Jul 2015 12:25:15 +1000 Subject: [PATCH] Fix T45450: Loop-select fails to cycle between overlapping edges --- source/blender/editors/mesh/editmesh_select.c | 6 +++--- 1 file 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; }