From 868300614387cffbc8645a225a96b46c2740f000 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Sun, 16 Jun 2013 17:07:07 +0000 Subject: Attempt to fix #35548: Use nearest edge instead of nearest vertex for UV island selection, or you may get a far away UV island that happens to have a vertex nearby. --- source/blender/editors/uvedit/uvedit_ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/uvedit') diff --git a/source/blender/editors/uvedit/uvedit_ops.c b/source/blender/editors/uvedit/uvedit_ops.c index 917335e2068..386eda7dd38 100644 --- a/source/blender/editors/uvedit/uvedit_ops.c +++ b/source/blender/editors/uvedit/uvedit_ops.c @@ -2113,7 +2113,7 @@ static int uv_mouse_select(bContext *C, const float co[2], bool extend, bool loo hitlen = hit.efa->len; } else if (selectmode == UV_SELECT_ISLAND) { - uv_find_nearest_vert(scene, ima, em, co, NULL, &hit); + uv_find_nearest_edge(scene, ima, em, co, &hit); if (hit.efa == NULL) { return OPERATOR_CANCELLED; @@ -2378,7 +2378,7 @@ static int uv_select_linked_internal(bContext *C, wmOperator *op, const wmEvent RNA_float_get_array(op->ptr, "location", co); } - uv_find_nearest_vert(scene, ima, em, co, NULL, &hit); + uv_find_nearest_edge(scene, ima, em, co, &hit); hit_p = &hit; } -- cgit v1.2.3