diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-23 08:24:20 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-23 08:29:21 +0300 |
commit | fbd78a8d78f460d1ae2972538139ac1602c012f6 (patch) | |
tree | 137e77868514388454cd597380db44d285005f39 /source/blender/modifiers | |
parent | c655bdfa3156f612b01b55b4c6e24d89fad4c748 (diff) |
Cleanup: use ELEM macro
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r-- | source/blender/modifiers/intern/MOD_surfacedeform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_surfacedeform.c b/source/blender/modifiers/intern/MOD_surfacedeform.c index d9c0e0cc502..be864d30445 100644 --- a/source/blender/modifiers/intern/MOD_surfacedeform.c +++ b/source/blender/modifiers/intern/MOD_surfacedeform.c @@ -1503,7 +1503,7 @@ static void surfacedeformModifier_do(ModifierData *md, ob, md, "Target polygons changed from %u to %u", smd->target_polys_num, target_polys_num); return; } - if (smd->target_verts_num != 0 && smd->target_verts_num != target_verts_num) { + if (!ELEM(smd->target_verts_num, 0, target_verts_num)) { if (smd->target_verts_num > target_verts_num) { /* Number of vertices on the target did reduce. There is no usable recovery from this. */ BKE_modifier_set_error(ob, |