Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-04-12 16:59:37 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-12 16:59:37 +0400
commit62c0dfbb46b4e4eefc82e58219b2ce8541b4307c (patch)
treef9c4e7c6c907ba671effe684120c8424fa42002c /source
parent6e98c791af2b17f61c6e7d18dcbf561ab3239a41 (diff)
fix [#26888] 3D viewport shading broken after solidify modifier
Diffstat (limited to 'source')
-rw-r--r--source/blender/modifiers/intern/MOD_solidify.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_solidify.c b/source/blender/modifiers/intern/MOD_solidify.c
index f7a55720a5e..1b7b724835c 100644
--- a/source/blender/modifiers/intern/MOD_solidify.c
+++ b/source/blender/modifiers/intern/MOD_solidify.c
@@ -643,6 +643,11 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
MEM_freeN(edge_order);
}
+ /* must recalculate normals with vgroups since they can displace unevenly [#26888] */
+ if(dvert) {
+ CDDM_calc_normals(result);
+ }
+
return result;
}