Reduce poly map memory usage (used by sculpt smooth brush.)
authorNicholas Bishop <nicholasbishop@gmail.com>
Sat, 17 Mar 2012 04:41:36 +0000 (04:41 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Sat, 17 Mar 2012 04:41:36 +0000 (04:41 +0000)
commit3d87c23f4ffb791e6be13ed8ce936f081bdf60a0
tree00ef0af3ccd790c3678e661cef677fb58af3baef
parent681e023cb0d9f7079a43397a8a44c2ece7ea9dc1
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_DerivedMesh.h
source/blender/blenkernel/BKE_mesh.h
source/blender/blenkernel/BKE_paint.h
source/blender/blenkernel/BKE_subsurf.h
source/blender/blenkernel/intern/cdderivedmesh.c
source/blender/blenkernel/intern/mesh.c
source/blender/blenkernel/intern/multires.c
source/blender/blenkernel/intern/subsurf_ccg.c
source/blender/editors/sculpt_paint/sculpt.c