fix [#26888] 3D viewport shading broken after solidify modifier
authorCampbell Barton <ideasman42@gmail.com>
Tue, 12 Apr 2011 12:59:37 +0000 (12:59 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 12 Apr 2011 12:59:37 +0000 (12:59 +0000)
source/blender/modifiers/intern/MOD_solidify.c

index f7a55720a5e9353f0fd0163cb751be63a9e662e8..1b7b724835cc248c8e7e38d458395cec3e52b40f 100644 (file)
@@ -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;
 }