diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-07-31 09:19:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-07-31 09:19:58 +0300 |
commit | 70f8b5b1ff9867c14092b05a2f2f77b2f4a839ad (patch) | |
tree | 9b3fbfdc0811efc1e1eb4a57ccbc2004823e4300 /source/blender | |
parent | 7575dbaf2a8a5c3df9ab1fbe0b2001319617392c (diff) |
Don't calculate tessface before sculpting
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/paint.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/source/blender/blenkernel/intern/paint.c b/source/blender/blenkernel/intern/paint.c index 76e56f0bc30..328731a11a9 100644 --- a/source/blender/blenkernel/intern/paint.c +++ b/source/blender/blenkernel/intern/paint.c @@ -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) { |