diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-09-07 14:59:01 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-09-07 14:59:01 +0400 |
commit | 8b6046cdad1325a82e0d161fdca0118e62f36b2d (patch) | |
tree | 6b4664a097416ca42dc3316c3e104ec6ba9335ea /source | |
parent | d5bcec80c821f6e43975b26c403a810e56f4c2b5 (diff) |
Fix for order of creating mesh and filling in SculptSession
This would use proper draw_pbvh for initially calculated PBVH.
Wasn't harmful since this flag used to be updated form update_mesh_elements,
but it's still better to have things consistent all over.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index e2289bc9cfc..210477e3e5a 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -3074,12 +3074,12 @@ void sculpt_update_mesh_elements(Scene *scene, Sculpt *sd, Object *ob, int need_ /* BMESH ONLY --- at some point we should move sculpt code to use polygons only - but for now it needs tessfaces */ BKE_mesh_tessface_ensure(me); - /* needs to be called after we ensure tessface */ - dm = mesh_get_derived_final(scene, ob, CD_MASK_BAREMESH); - if (!mmd) ss->kb = ob_get_keyblock(ob); else ss->kb = NULL; + /* needs to be called after we ensure tessface */ + dm = mesh_get_derived_final(scene, ob, CD_MASK_BAREMESH); + if (mmd) { ss->multires = mmd; ss->totvert = dm->getNumVerts(dm); |