From 3d87c23f4ffb791e6be13ed8ce936f081bdf60a0 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Sat, 17 Mar 2012 04:41:36 +0000 Subject: 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. --- source/blender/blenkernel/BKE_paint.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/blenkernel/BKE_paint.h') 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; -- cgit v1.2.3