Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-03-09 01:35:37 +0300
committerCampbell Barton <campbell@blender.org>2022-03-09 02:13:43 +0300
commit21462565632b876ac4eadf2bd30573f2fda70c76 (patch)
tree483da4fc20c4c8cc7198abd6edd5f3a53aa90b91 /source/blender/editors/uvedit/uvedit_parametrizer.c
parent626c844105afc3b2455f5a1b87ac8a7839a7e0bf (diff)
Cleanup: use ELEM macro
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_parametrizer.c')
-rw-r--r--source/blender/editors/uvedit/uvedit_parametrizer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/uvedit/uvedit_parametrizer.c b/source/blender/editors/uvedit/uvedit_parametrizer.c
index 53b8a541dba..f19b32e3ad4 100644
--- a/source/blender/editors/uvedit/uvedit_parametrizer.c
+++ b/source/blender/editors/uvedit/uvedit_parametrizer.c
@@ -2039,7 +2039,7 @@ static float p_collapse_cost(PEdge *edge, PEdge *pair)
float *co1 = e->next->vert->co;
float *co2 = e->next->next->vert->co;
- if ((e->face != oldf1) && (e->face != oldf2)) {
+ if (!ELEM(e->face, oldf1, oldf2)) {
float tetrav2[3], tetrav3[3];
/* tetrahedron volume = (1/3!)*|a.(b x c)| */