From c1edbe791794e678ab8a986b559b9c117ed7b971 Mon Sep 17 00:00:00 2001 From: Henrik Dick Date: Wed, 15 Apr 2020 12:07:04 +0200 Subject: Fix mistake from last commit to solidify. While review the behaviour was changed accidentally. Now Solidify just crashes everytime. This is the fix for that. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D7434 --- source/blender/modifiers/intern/MOD_solidify_extrude.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender') diff --git a/source/blender/modifiers/intern/MOD_solidify_extrude.c b/source/blender/modifiers/intern/MOD_solidify_extrude.c index 3ba64ce084f..1868bb17851 100644 --- a/source/blender/modifiers/intern/MOD_solidify_extrude.c +++ b/source/blender/modifiers/intern/MOD_solidify_extrude.c @@ -236,8 +236,8 @@ Mesh *MOD_solidify_extrude_applyModifier(ModifierData *md, const bool do_clamp = (smd->offset_clamp != 0.0f); const bool do_angle_clamp = do_clamp && (smd->flag & MOD_SOLIDIFY_OFFSET_ANGLE_CLAMP) != 0; const bool do_bevel_convex = bevel_convex != 0.0f; - const bool do_rim = (smd->flag & MOD_SOLIDIFY_RIM) == 0; - const bool do_shell = do_rim && (smd->flag & MOD_SOLIDIFY_NOSHELL) == 0; + const bool do_rim = (smd->flag & MOD_SOLIDIFY_RIM) != 0; + const bool do_shell = !(do_rim && (smd->flag & MOD_SOLIDIFY_NOSHELL) != 0); /* weights */ MDeformVert *dvert; -- cgit v1.2.3