diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-06-11 21:15:57 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-06-30 23:02:17 +0300 |
commit | a3e6b7c2ce06b937c0444d8761f8351c9f9e2f59 (patch) | |
tree | f16606e0d17dcb970e19382696b54527ebb00943 /source/blender/blenkernel/BKE_paint.h | |
parent | 981d7381cd27432616c69d63cfaeb16aff6d3edb (diff) |
Sculpt: Refactor persistent base to make it usable from other tools
This renames the layer persistent base and adds new API functions to get
the mesh state from the base, so it can be used from other tools and
replaced in the future with a better system.
Reviewed By: sergey
Maniphest Tasks: T77738
Differential Revision: https://developer.blender.org/D8003
Diffstat (limited to 'source/blender/blenkernel/BKE_paint.h')
-rw-r--r-- | source/blender/blenkernel/BKE_paint.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/BKE_paint.h b/source/blender/blenkernel/BKE_paint.h index c36e9f6961f..f88d1a1ee40 100644 --- a/source/blender/blenkernel/BKE_paint.h +++ b/source/blender/blenkernel/BKE_paint.h @@ -283,11 +283,11 @@ typedef struct SculptClothSimulation { } SculptClothSimulation; -typedef struct SculptLayerPersistentBase { +typedef struct SculptPersistentBase { float co[3]; float no[3]; float disp; -} SculptLayerPersistentBase; +} SculptPersistentBase; typedef struct SculptVertexInfo { /* Idexed by vertex, stores and ID of its topologycally connected component. */ @@ -392,9 +392,9 @@ typedef struct SculptSession { float pose_origin[3]; SculptPoseIKChain *pose_ik_chain_preview; - /* Layer brush persistence between strokes */ + /* Mesh State Persistence */ /* This is freed with the PBVH, so it is always in sync with the mesh. */ - SculptLayerPersistentBase *layer_base; + SculptPersistentBase *persistent_base; SculptVertexInfo vertex_info; SculptFakeNeighbors fake_neighbors; |