fix mirror when have dup faces; prevent eekadoodle on tess recalculation

This commit is contained in:
2011-08-08 17:30:19 +00:00
parent 5f75407e22
commit cbb2e58b68
2 changed files with 9 additions and 8 deletions

View File

@@ -2364,6 +2364,14 @@ int mesh_recalcTesselation(CustomData *fdata,
mf->v2 = mloop[mf->v2].v;
mf->v3 = mloop[mf->v3].v;
if(mf->v3==0) {
/*prevent eekadoodle*/
SWAP(int, mf->v1, mf->v2);
SWAP(int, mf->v2, mf->v3);
SWAP(int, lindex[0], lindex[1]);
SWAP(int, lindex[1], lindex[2]);
}
mesh_loops_to_tri_corners(fdata, ldata, pdata,
lindex, i, mf->v4);