Fix T104033: UV edges not selecting when selecting faces

Regression in [0] replaced edge with vertex selection.

[0]: 6c774feba2
This commit is contained in:
Campbell Barton 2023-01-23 20:23:55 +11:00
parent 64dbfe714b
commit f5c081dafc
Notes: blender-bot 2023-02-14 06:57:56 +01:00
Referenced by issue #104033, Regression: UV faces not selecting correctly
1 changed files with 2 additions and 2 deletions

View File

@ -3315,12 +3315,12 @@ static void uv_select_flush_from_tag_face(const Scene *scene, Object *obedit, co
if (BM_elem_flag_test(efa, BM_ELEM_TAG)) {
BM_ITER_ELEM (l, &liter, efa, BM_LOOPS_OF_FACE) {
if (select) {
BM_ELEM_CD_SET_BOOL(l, offsets.select_vert, true);
BM_ELEM_CD_SET_BOOL(l, offsets.select_edge, true);
uv_select_flush_from_tag_sticky_loc_internal(
scene, em, vmap, efa_index, l, select, offsets);
}
else {
BM_ELEM_CD_SET_BOOL(l, offsets.select_vert, false);
BM_ELEM_CD_SET_BOOL(l, offsets.select_edge, false);
if (!uvedit_vert_is_face_select_any_other(scene, l, offsets)) {
uv_select_flush_from_tag_sticky_loc_internal(
scene, em, vmap, efa_index, l, select, offsets);