diff options
author | Campbell Barton <campbell@blender.org> | 2022-01-07 07:30:14 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-01-07 09:48:25 +0300 |
commit | 164202831032164ed52108b4a365b9ff9ca4ac84 (patch) | |
tree | 75d6f253896f58c16d95c78b721cd758afbdbe10 /source/blender/blenkernel/intern/subdiv_mesh.c | |
parent | 82858ca3f4e6dc6f840af9306c350900abd491fc (diff) |
Cleanup: use the ELEM macro
Diffstat (limited to 'source/blender/blenkernel/intern/subdiv_mesh.c')
-rw-r--r-- | source/blender/blenkernel/intern/subdiv_mesh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/subdiv_mesh.c b/source/blender/blenkernel/intern/subdiv_mesh.c index 9630b30a21e..5bf519e5f70 100644 --- a/source/blender/blenkernel/intern/subdiv_mesh.c +++ b/source/blender/blenkernel/intern/subdiv_mesh.c @@ -1118,7 +1118,7 @@ static void subdiv_mesh_vertex_of_loose_edge(const struct SubdivForeachContext * find_edge_neighbors(ctx, coarse_edge, neighbors); /* Interpolate custom data when not an end point. * This data has already been copied from the original vertex by #subdiv_mesh_vertex_loose. */ - if (u != 0.0 && u != 1.0) { + if (!ELEM(u, 0.0, 1.0)) { subdiv_mesh_vertex_of_loose_edge_interpolate(ctx, coarse_edge, u, subdiv_vertex_index); } /* Interpolate coordinate. */ |