bugfix [#25523] Face extrude will crash Blender if array and subsurf modifier are added to mesh object

test_index_face() failed to fix indices like (6,0,0,6), making it (0,6,6,0).
This commit is contained in:
Campbell Barton
2011-02-09 03:49:59 +00:00
parent 5e1eb9b4d3
commit f6733d90e5

View 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--;