Fix UV select similar with multi-object editing & sync-select

When sync select was enabled, checking for selected elements isn't
a correct way to check for visible UV's for that mesh.

Meshes without any selected vertices were skipped, even when they
contained similar UV's that should have been selected.
This commit is contained in:
Campbell Barton
2025-06-01 14:30:16 +00:00
parent 3d7b85ffda
commit 492fa01eb3

View File

@@ -4867,7 +4867,7 @@ static wmOperatorStatus uv_select_similar_vert_exec(bContext *C, wmOperator *op)
for (Object *ob : objects) {
BMesh *bm = BKE_editmesh_from_object(ob)->bm;
if (bm->totvertsel == 0) {
if (!(ts->uv_flag & UV_SYNC_SELECTION) && (bm->totvertsel == 0)) {
continue;
}
@@ -4981,7 +4981,7 @@ static wmOperatorStatus uv_select_similar_edge_exec(bContext *C, wmOperator *op)
for (Object *ob : objects) {
BMesh *bm = BKE_editmesh_from_object(ob)->bm;
if (bm->totvertsel == 0) {
if (!(ts->uv_flag & UV_SYNC_SELECTION) && (bm->totvertsel == 0)) {
continue;
}