[#22262] Sculpting shape keys using the Smooth brush switches the shape to the Basis
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 21 Jun 2010 20:10:59 +0000 (20:10 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 21 Jun 2010 20:10:59 +0000 (20:10 +0000)
commit425da6206f75b9218cf4123ac1b9cdeaf7f86bb1
treebb8639d387efd6a37899c520efdd397f67ddb0c7
parent72d21c35adcea937bbf2e2423472c9ca5ed315c6
[#22262] Sculpting shape keys using the Smooth brush switches the shape to the Basis

PBVH used the same verts array as mesh data and shape key/reference key coords
were applying on the mesh data, so on some refreshing undeformed mesh was
displayed.
Added utility functions to get vert coords from key block, apply new vert coords
on keyblock and function to apply coords on bpvh, so now pbvh uses it's ovn
vertex array and no changes are making to the mesh data.

Additional change:
Store key block name in SculptUndoNode, so now shape wouldn't be copied to
wrong keyblock on undo
source/blender/blenkernel/BKE_key.h
source/blender/blenkernel/BKE_paint.h
source/blender/blenkernel/intern/cdderivedmesh.c
source/blender/blenkernel/intern/depsgraph.c
source/blender/blenkernel/intern/key.c
source/blender/blenlib/BLI_pbvh.h
source/blender/blenlib/intern/pbvh.c
source/blender/editors/sculpt_paint/sculpt.c
source/blender/editors/sculpt_paint/sculpt_intern.h