Fix T86082 Bevel messed up UVs on some multisegment bevels.

When polygons around a bevel are rebuilt, sometimes UVs are merged
around a new vertex in the case of the face opposite a single edge
being beveled on a 3-edge vertex. This should not have been done
if any of the edges at that vertex were a seam.
This commit is contained in:
Howard Trickey 2021-02-28 11:33:25 -05:00
parent f3d60c68ef
commit fbba239e3a
Notes: blender-bot 2023-02-14 10:09:24 +01:00
Referenced by issue #86082, Bevel messes UVs up
1 changed files with 2 additions and 2 deletions

View File

@ -6445,7 +6445,7 @@ static bool bev_rebuild_polygon(BMesh *bm, BevelParams *bp, BMFace *f)
if (bmv) {
BLI_array_append(vv, bmv);
BLI_array_append(ee, bme); /* TODO: Maybe better edge here. */
if (corner3special && v->ebev && !v->ebev->is_seam && k != vm->seg) {
if (corner3special && v->ebev && !bv->any_seam && k != vm->seg) {
BLI_array_append(vv_fix, bmv);
}
}
@ -6474,7 +6474,7 @@ static bool bev_rebuild_polygon(BMesh *bm, BevelParams *bp, BMFace *f)
if (bmv) {
BLI_array_append(vv, bmv);
BLI_array_append(ee, bme);
if (corner3special && v->ebev && !v->ebev->is_seam && k != 0) {
if (corner3special && v->ebev && !bv->any_seam && k != 0) {
BLI_array_append(vv_fix, bmv);
}
}