Fix #107156: UV Cylinder/Sphere Projection fails after other operators
Caused by 6b8cdd5979.
Above commit introduced element tagging for boundary calculations but
only cleared them properly on all faces if the new `Preserve Seams`
option was chosen. We cannot be sure about the state of element tags
from prior operators though, so correct the culprit check to also only
be in effect if the new `Preserve Seams` option was chosen.
Pull Request: https://projects.blender.org/blender/blender/pulls/107161
This commit is contained in:
committed by
Philipp Oeser
parent
c18351f670
commit
4134682ec2
@@ -3181,7 +3181,7 @@ static float uv_sphere_project(const Scene *scene,
|
||||
const float branch_init)
|
||||
{
|
||||
float max_u = 0.0f;
|
||||
if (BM_elem_flag_test(efa_init, BM_ELEM_TAG)) {
|
||||
if (use_seams && BM_elem_flag_test(efa_init, BM_ELEM_TAG)) {
|
||||
return max_u;
|
||||
}
|
||||
|
||||
@@ -3358,7 +3358,7 @@ static float uv_cylinder_project(const Scene *scene,
|
||||
const float branch_init)
|
||||
{
|
||||
float max_u = 0.0f;
|
||||
if (BM_elem_flag_test(efa_init, BM_ELEM_TAG)) {
|
||||
if (use_seams && BM_elem_flag_test(efa_init, BM_ELEM_TAG)) {
|
||||
return max_u;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user