Fix for bug #10734: mirror modifier crash with no axis
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 6 May 2008 08:35:19 +0000 (08:35 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 6 May 2008 08:35:19 +0000 (08:35 +0000)
enabled for mirroring around.

source/blender/blenkernel/intern/modifier.c

index 0cd6035b9dc53e8571913be8d9d75871dad9bb15..ca95d9edc0695d89dd0d020bc4f7f1201ee3a221 100644 (file)
@@ -1506,7 +1506,8 @@ static DerivedMesh *mirrorModifier_applyModifier(
 
        result = mirrorModifier__doMirror(mmd, ob, derivedData, 0);
 
-       CDDM_calc_normals(result);
+       if(result != derivedData)
+               CDDM_calc_normals(result);
        
        return result;
 }