Fix #29124: Modifying mesh with mirror and solidify modifiers crashes blender
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 1 Nov 2011 17:43:30 +0000 (17:43 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 1 Nov 2011 17:43:30 +0000 (17:43 +0000)
It is corrected fix for #29089 (svn rev 41409). That fix wasn't correct because
it used to set face number from derived mesh on which solidify is applying which
isn't correct for case of constructive modifiers applied on base mesh before
solidify modifier.

Actually nothing special should be performed here to set needed original index
because of ORIGINDEX layer is getting copyed automatically when when copying faces.

source/blender/modifiers/intern/MOD_solidify.c

index 8d47ad2..347af00 100644 (file)
@@ -626,7 +626,6 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
                        add_v3_v3(edge_vert_nos[ed->v1], nor);
                        add_v3_v3(edge_vert_nos[ed->v2], nor);
 #endif
-                       origindex[numFaces * 2 + i]= ORIGINDEX_NONE;
                }
                
 #ifdef SOLIDIFY_SIDE_NORMALS