Don't calculate tessface before sculpting

This commit is contained in:
Campbell Barton 2015-07-31 16:19:58 +10:00
parent 7575dbaf2a
commit 70f8b5b1ff
1 changed files with 3 additions and 10 deletions

View File

@ -763,18 +763,11 @@ void BKE_sculpt_update_mesh_elements(Scene *scene, Sculpt *sd, Object *ob,
}
}
/* BMESH ONLY --- at some point we should move sculpt code to use polygons only - but for now it needs tessfaces */
if (ss->bm) {
BKE_mesh_tessface_clear(me);
}
else {
BKE_mesh_tessface_ensure(me);
}
/* tessfaces aren't used and will become invalid */
BKE_mesh_tessface_clear(me);
if (!mmd) ss->kb = BKE_keyblock_from_object(ob);
else ss->kb = NULL;
ss->kb = (mmd == NULL) ? BKE_keyblock_from_object(ob) : NULL;
/* needs to be called after we ensure tessface */
dm = mesh_get_derived_final(scene, ob, CD_MASK_BAREMESH);
if (mmd) {