-Bugfix #3174: incorrectly counting number of face vertices

This commit is contained in:
Ken Hughes
2005-10-11 14:35:43 +00:00
parent bcbaffc8c2
commit a84a75cfc3

View File

@@ -2618,6 +2618,7 @@ static void mface_from_data( MFace * mf, TFace * tf, MCol * col,
mf->v4 = nmv->index;
else
mf->v4 = 0;
i = 4; /* no more than 4 verts */
}
if( tf ) {
@@ -2628,7 +2629,7 @@ static void mface_from_data( MFace * mf, TFace * tf, MCol * col,
}
}
test_index_face(mf, NULL, tf, mf->v4?4:3);
test_index_face(mf, NULL, tf, i );
mf->mat_nr = from->mat_nr;
mf->flag = from->mf_flag;