Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2012-12-30 22:26:11 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2012-12-30 22:26:11 +0400
commit31f978c8efdfd88d2cf2b5d9ae7c5d91c81e13d3 (patch)
tree64203b4b8e556adfa7a77998cbd8d45e36796d4d /source/blender/blenkernel/intern/pbvh_intern.h
parentec258542e2b537c4292fd9214d898fa5d3864ef9 (diff)
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.
Diffstat (limited to 'source/blender/blenkernel/intern/pbvh_intern.h')
-rw-r--r--source/blender/blenkernel/intern/pbvh_intern.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/pbvh_intern.h b/source/blender/blenkernel/intern/pbvh_intern.h
index fe996536609..d3539245d11 100644
--- a/source/blender/blenkernel/intern/pbvh_intern.h
+++ b/source/blender/blenkernel/intern/pbvh_intern.h
@@ -91,6 +91,9 @@ struct PBVHNode {
/* Used for raycasting: how close bb is to the ray point. */
float tmin;
+ /* Scalar displacements for sculpt mode's layer brush. */
+ float *layer_disp;
+
int proxy_count;
PBVHProxyNode *proxies;
};