Fix UV select similar missing selection flushing calls

Selecting vertices/edges wasn't flushing the selection to faces.
This commit is contained in:
Campbell Barton
2025-06-02 00:09:33 +10:00
parent e6e997ec60
commit 3d7b85ffda

View File

@@ -4898,6 +4898,12 @@ static wmOperatorStatus uv_select_similar_vert_exec(bContext *C, wmOperator *op)
}
}
if (changed) {
if (ts->uv_flag & UV_SYNC_SELECTION) {
BM_mesh_select_flush(bm);
}
else {
uvedit_select_flush(scene, bm);
}
uv_select_tag_update_for_object(depsgraph, ts, ob);
}
}
@@ -5006,6 +5012,12 @@ static wmOperatorStatus uv_select_similar_edge_exec(bContext *C, wmOperator *op)
}
}
if (changed) {
if (ts->uv_flag & UV_SYNC_SELECTION) {
BM_mesh_select_flush(bm);
}
else {
uvedit_select_flush(scene, bm);
}
uv_select_tag_update_for_object(depsgraph, ts, ob);
}
}
@@ -5097,6 +5109,12 @@ static wmOperatorStatus uv_select_similar_face_exec(bContext *C, wmOperator *op)
}
}
if (changed) {
if (ts->uv_flag & UV_SYNC_SELECTION) {
BM_mesh_select_flush(bm);
}
else {
uvedit_select_flush(scene, bm);
}
uv_select_tag_update_for_object(depsgraph, ts, ob);
}
}
@@ -5208,6 +5226,12 @@ static wmOperatorStatus uv_select_similar_island_exec(bContext *C, wmOperator *o
}
if (changed) {
if (ts->uv_flag & UV_SYNC_SELECTION) {
BM_mesh_select_flush(bm);
}
else {
uvedit_select_flush(scene, bm);
}
uv_select_tag_update_for_object(depsgraph, ts, obedit);
}
}