bmesh - changes to mempool allocations
authorCampbell Barton <ideasman42@gmail.com>
Thu, 1 Mar 2012 22:17:04 +0000 (22:17 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 1 Mar 2012 22:17:04 +0000 (22:17 +0000)
commit921a7556fbc4c66267137b767ce93c85d9b4cbd8
tree7d816ba9696338c219d18ac4d6f7e3b1f536ebf6
parent2942eab57c9677e87d0830fe5e5da35abb869417
bmesh - changes to mempool allocations
* double default edge allocation size (double the number of verts/faces).
* CustomData_bmesh_init_pool was using allocsize & chunksize as the same variable. Now use type specific chunk size.
* bmesh copy and editmode conversion now allocate the BMesh mempool size needed for the entire vert/edge/loop/face arrays since its known already.
source/blender/blenkernel/BKE_customdata.h
source/blender/blenkernel/intern/customdata.c
source/blender/bmesh/intern/bmesh_construct.c
source/blender/bmesh/intern/bmesh_construct.h
source/blender/bmesh/intern/bmesh_interp.c
source/blender/bmesh/intern/bmesh_mesh.c
source/blender/bmesh/operators/bmo_mesh_conv.c
source/blender/editors/mesh/bmesh_tools.c