UV: tweak island select behavior
Selecting inside an island no longer de-selects
when it's too far from an edge.
When edge select fails fall back to inside-face test.
This follows 908b383b7d
which made this change for face-select.
Apply to island selection since it doesn't make sense
for island select to behave differently.
This commit is contained in:
parent
d3506c86da
commit
d1c6704413
|
@ -1982,6 +1982,13 @@ static int uv_mouse_select_multi(bContext *C,
|
|||
}
|
||||
else if (selectmode == UV_SELECT_ISLAND) {
|
||||
found_item = uv_find_nearest_edge_multi(scene, objects, objects_len, co, &hit);
|
||||
|
||||
if (!found_item) {
|
||||
/* Without this, we can be within the face of an island but too far from an edge,
|
||||
* see face selection comment for details. */
|
||||
hit.dist_sq = FLT_MAX;
|
||||
found_item = uv_find_nearest_face_multi_ex(scene, objects, objects_len, co, &hit, true);
|
||||
}
|
||||
}
|
||||
|
||||
if (!found_item) {
|
||||
|
|
Loading…
Reference in New Issue