diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2012-03-17 08:41:36 +0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2012-03-17 08:41:36 +0400 |
commit | 3d87c23f4ffb791e6be13ed8ce936f081bdf60a0 (patch) | |
tree | 00ef0af3ccd790c3678e661cef677fb58af3baef /source/blender/blenkernel/BKE_paint.h | |
parent | 681e023cb0d9f7079a43397a8a44c2ece7ea9dc1 (diff) |
Reduce poly map memory usage (used by sculpt smooth brush.)
Changed the create_vert_poly_map function to return a more compact
structure. Memory saved will vary depending on the mesh, but typically
it should be about one third of the old size.
Diffstat (limited to 'source/blender/blenkernel/BKE_paint.h')
-rw-r--r-- | source/blender/blenkernel/BKE_paint.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_paint.h b/source/blender/blenkernel/BKE_paint.h index ff3e3c81724..acf39d83370 100644 --- a/source/blender/blenkernel/BKE_paint.h +++ b/source/blender/blenkernel/BKE_paint.h @@ -34,6 +34,7 @@ struct Brush; struct MDisps; +struct MeshElemMap; struct MFace; struct MultireModifierData; struct MVert; @@ -80,7 +81,7 @@ typedef struct SculptSession { struct KeyBlock *kb; /* Mesh connectivity */ - struct ListBase *pmap; + const struct MeshElemMap *pmap; /* PBVH acceleration structure */ struct PBVH *pbvh; |