added missing call to re-tesselate on mesh conversion (Alt+C).

This commit is contained in:
Campbell Barton
2011-10-18 11:28:39 +00:00
parent 60713a1d61
commit 861ba1bb53

View File

@@ -1248,6 +1248,10 @@ static int convert_exec(bContext *C, wmOperator *op)
DM_to_mesh(dm, newob->data, newob);
/* re-tesselation doesn't happen automatic, calling like this is */
me= newob->data;
me->totface = mesh_recalcTesselation(&me->fdata, &me->ldata, &me->pdata, me->mvert, me->totface, me->totloop, me->totpoly, 0, 0);
dm->release(dm);
object_free_modifiers(newob); /* after derivedmesh calls! */
}