From 84d117b3add3eec0df7566f183ebb476fff70d0b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 22 Apr 2015 00:43:31 +1000 Subject: Minor edit to edit-mesh selection bias only choose verts over edges (not faces) --- source/blender/editors/mesh/editmesh_select.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c index f3e3bd9e7c0..da6a886e2af 100644 --- a/source/blender/editors/mesh/editmesh_select.c +++ b/source/blender/editors/mesh/editmesh_select.c @@ -823,7 +823,9 @@ static int unified_findnearest(ViewContext *vc, BMVert **r_eve, BMEdge **r_eed, if ((dist > 0.0f) && (em->selectmode & SCE_SELECT_EDGE)) { eed = EDBM_edge_find_nearest_ex(vc, &dist, true, use_cycle); - dist = min_ff(dist + dist_bias, dist_init); + if (eed) { + dist = min_ff(dist + dist_bias, dist_init); + } } if ((dist > 0.0f) && em->selectmode & SCE_SELECT_VERTEX) { -- cgit v1.2.3