bugfix [#25523] Face extrude will crash Blender if array and subsurf modifier are...
authorCampbell Barton <ideasman42@gmail.com>
Wed, 9 Feb 2011 03:49:59 +0000 (03:49 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 9 Feb 2011 03:49:59 +0000 (03:49 +0000)
test_index_face() failed to fix indices like (6,0,0,6), making it (0,6,6,0).

source/blender/blenkernel/intern/mesh.c

index dc48383..bd4f631 100644 (file)
@@ -444,7 +444,7 @@ int test_index_face(MFace *mface, CustomData *fdata, int mfindex, int nr)
                mface->v4= 0;
                nr--;
        }
-       if(mface->v2 && mface->v2==mface->v3) {
+       if((mface->v2 || mface->v4) && mface->v2==mface->v3) {
                mface->v3= mface->v4;
                mface->v4= 0;
                nr--;