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-03-17 08:41:36 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2012-03-17 08:41:36 +0400
commit3d87c23f4ffb791e6be13ed8ce936f081bdf60a0 (patch)
tree00ef0af3ccd790c3678e661cef677fb58af3baef /source/blender/blenkernel/BKE_subsurf.h
parent681e023cb0d9f7079a43397a8a44c2ece7ea9dc1 (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_subsurf.h')
-rw-r--r--source/blender/blenkernel/BKE_subsurf.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/source/blender/blenkernel/BKE_subsurf.h b/source/blender/blenkernel/BKE_subsurf.h
index 10254545d3e..7f9881926a6 100644
--- a/source/blender/blenkernel/BKE_subsurf.h
+++ b/source/blender/blenkernel/BKE_subsurf.h
@@ -38,8 +38,7 @@ struct DMFlagMat;
struct DMGridAdjacency;
struct DMGridData;
struct DerivedMesh;
-struct IndexNode;
-struct ListBase;
+struct MeshElemMap;
struct Mesh;
struct MPoly;
struct MultiresSubsurf;
@@ -105,11 +104,9 @@ typedef struct CCGDerivedMesh {
int *reverseFaceMap;
struct PBVH *pbvh;
- struct ListBase *fmap;
- struct IndexNode *fmap_mem;
- struct ListBase *pmap;
- struct IndexNode *pmap_mem;
+ struct MeshElemMap *pmap;
+ int *pmap_mem;
struct DMGridData **gridData;
struct DMGridAdjacency *gridAdjacency;