fix [#24083] Crash when opening a certain file
authorCampbell Barton <ideasman42@gmail.com>
Fri, 1 Oct 2010 13:51:48 +0000 (13:51 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 1 Oct 2010 13:51:48 +0000 (13:51 +0000)
own error in recent commit.

source/blender/blenkernel/intern/DerivedMesh.c

index 1f49d519e7da0def8fd5df720cd8df0b5e1a8062..5fbce3af95f8c9070674a9959e601368b831db77 100644 (file)
@@ -1790,7 +1790,7 @@ static void mesh_calc_modifiers(Scene *scene, Object *ob, float (*inputVertexCos
 
                        /* if this is not the last modifier in the stack then recalculate the normals
                         * to avoid giving bogus normals to the next modifier see: [#23673] */
-                       if(isPrevDeform && mti->dependsOnNormals(md)) {
+                       if(isPrevDeform &&  mti->dependsOnNormals && mti->dependsOnNormals(md)) {
                                /* XXX, this covers bug #23673, but we may need normal calc for other types */
                                if(dm->type == DM_TYPE_CDDM) {
                                        CDDM_apply_vert_coords(dm, deformedVerts);