diff options
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/mesh/editmesh_select.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) { |