diff options
Diffstat (limited to 'source/blender/modifiers/intern/MOD_solidify.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_solidify.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/source/blender/modifiers/intern/MOD_solidify.c b/source/blender/modifiers/intern/MOD_solidify.c index 8ea0a602b65..41852272787 100644 --- a/source/blender/modifiers/intern/MOD_solidify.c +++ b/source/blender/modifiers/intern/MOD_solidify.c @@ -70,11 +70,13 @@ static void requiredDataMask(Object *UNUSED(ob), static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mesh *mesh) { const SolidifyModifierData *smd = (SolidifyModifierData *)md; - if (smd->mode == MOD_SOLIDIFY_MODE_EXTRUDE) { - return MOD_solidify_extrude_applyModifier(md, ctx, mesh); - } - else if (smd->mode == MOD_SOLIDIFY_MODE_NONMANIFOLD) { - return MOD_solidify_nonmanifold_applyModifier(md, ctx, mesh); + switch (smd->mode) { + case MOD_SOLIDIFY_MODE_EXTRUDE: + return MOD_solidify_extrude_applyModifier(md, ctx, mesh); + case MOD_SOLIDIFY_MODE_NONMANIFOLD: + return MOD_solidify_nonmanifold_applyModifier(md, ctx, mesh); + default: + BLI_assert(0); } return mesh; } |