Cleanup: use the ELEM macro
This commit is contained in:
@@ -972,7 +972,7 @@ static void loop_manifold_fan_around_vert_next(const Span<MLoop> loops,
|
||||
const uint vert_fan_next = loops[*r_mlfan_curr_index].v;
|
||||
const MPoly &mpfan_next = polys[*r_mpfan_curr_index];
|
||||
if ((vert_fan_orig == vert_fan_next && vert_fan_orig == mv_pivot_index) ||
|
||||
(vert_fan_orig != vert_fan_next && vert_fan_orig != mv_pivot_index)) {
|
||||
(!ELEM(vert_fan_orig, vert_fan_next, mv_pivot_index))) {
|
||||
/* We need the previous loop, but current one is our vertex's loop. */
|
||||
*r_mlfan_vert_index = *r_mlfan_curr_index;
|
||||
if (--(*r_mlfan_curr_index) < mpfan_next.loopstart) {
|
||||
|
||||
@@ -36,7 +36,7 @@ MeshUVVert *MeshPrimitive::get_other_uv_vertex(const MeshVertex *v1, const MeshV
|
||||
BLI_assert(vertices[0].vertex == v1 || vertices[1].vertex == v1 || vertices[2].vertex == v1);
|
||||
BLI_assert(vertices[0].vertex == v2 || vertices[1].vertex == v2 || vertices[2].vertex == v2);
|
||||
for (MeshUVVert &uv_vertex : vertices) {
|
||||
if (uv_vertex.vertex != v1 && uv_vertex.vertex != v2) {
|
||||
if (!ELEM(uv_vertex.vertex, v1, v2)) {
|
||||
return &uv_vertex;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user