diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2013-06-16 21:07:07 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2013-06-16 21:07:07 +0400 |
commit | 868300614387cffbc8645a225a96b46c2740f000 (patch) | |
tree | e2306cd0ecf2dd8d05fd797fe767c4b8b1fdc183 /source | |
parent | 965462c183f4e5e9cb6c2e650b43f868119b1f43 (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |