bmesh: corrected fix for svulpting on non-multires mesh
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 7 Sep 2011 12:16:20 +0000 (12:16 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 7 Sep 2011 12:16:20 +0000 (12:16 +0000)
commit3b891aea5cbddc18299e7230a89f16ce41b7d744
treec4dc9351aa0e6d6289c3f7ab5b2dcb74a1edcbe3
parent05bde0b0f0921f2e97a494d7a9902f4bc4edabeb
bmesh: corrected fix for svulpting on non-multires mesh

Previous fix wasn't correct. It made things working, but it removed
advantage of using PBVH for speed because derivedMesh used to be
recreated on each stroke step.

This commit fixes non-multires sculpting for Solid shading,
wireframe and render wouldn't work correct -- it'll require
a bit more tricky things because DM created for base mesh
doesn't points to mesh->mverts anymore, so sculpting and
drawing modules are using different verts arrays.
source/blender/blenkernel/intern/cdderivedmesh.c
source/blender/editors/sculpt_paint/sculpt.c
source/blender/editors/sculpt_paint/sculpt_undo.c