Move layer displacements from SculptUndoNode to PBVHNode
authorNicholas Bishop <nicholasbishop@gmail.com>
Sun, 30 Dec 2012 18:26:11 +0000 (18:26 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Sun, 30 Dec 2012 18:26:11 +0000 (18:26 +0000)
commit31f978c8efdfd88d2cf2b5d9ae7c5d91c81e13d3
tree64203b4b8e556adfa7a77998cbd8d45e36796d4d
parentec258542e2b537c4292fd9214d898fa5d3864ef9
Move layer displacements from SculptUndoNode to PBVHNode

* This doesn't make much difference for regular mesh/multires
  sculpting, but for dynamic topology sculpting the undo stack isn't
  split up by PBVH nodes, so it's more convenient to store the layer
  data in PBVH nodes.

* Note that the life cycle of the layer displacement data is
  unchanged -- it's only valid during a stroke with the layer brush,
  gets free'd when the undo step ends.
source/blender/blenkernel/BKE_pbvh.h
source/blender/blenkernel/intern/pbvh.c
source/blender/blenkernel/intern/pbvh_intern.h
source/blender/editors/sculpt_paint/sculpt.c
source/blender/editors/sculpt_paint/sculpt_intern.h
source/blender/editors/sculpt_paint/sculpt_undo.c