Fix for bug #11389: edgesplit modifier crash after subsurf when
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 15 May 2008 20:07:07 +0000 (20:07 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 15 May 2008 20:07:07 +0000 (20:07 +0000)
no edges were being split.

source/blender/blenkernel/intern/modifier.c

index a4ee0947056665d3136851417f6af8f9a492f7fa..48635951553e11ccded967b95b0b5e75440d3001 100644 (file)
@@ -1248,7 +1248,8 @@ static DerivedMesh *arrayModifier_applyModifier(
 
        result = arrayModifier_doArray(amd, ob, derivedData, 0);
 
-       CDDM_calc_normals(result);
+       if(result != derivedData)
+               CDDM_calc_normals(result);
 
        return result;
 }
@@ -2674,7 +2675,8 @@ static DerivedMesh *edgesplitModifier_applyModifier(
 
        result = edgesplitModifier_do(emd, ob, derivedData);
 
-       CDDM_calc_normals(result);
+       if(result != derivedData)
+               CDDM_calc_normals(result);
 
        return result;
 }