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:
authorCampbell Barton <ideasman42@gmail.com>2012-03-02 03:59:34 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-02 03:59:34 +0400
commit979a80e74398dd68f013b8ca1f18b2653a4f6338 (patch)
treea7051b7a1a5db8844d3a44636aa8bae704a16eca /source/blender/blenkernel/intern/customdata.c
parentc26f5035b66d3be3f4996625b79ba9dd58c1d27e (diff)
minor edits to last commit - use fixed chunksize, rather than the number of verts/edges/faces in bm_mempool_init().
Diffstat (limited to 'source/blender/blenkernel/intern/customdata.c')
-rw-r--r--source/blender/blenkernel/intern/customdata.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/blender/blenkernel/intern/customdata.c b/source/blender/blenkernel/intern/customdata.c
index 7b1b5e7dd37..cd15c56cea1 100644
--- a/source/blender/blenkernel/intern/customdata.c
+++ b/source/blender/blenkernel/intern/customdata.c
@@ -2119,11 +2119,10 @@ void CustomData_bmesh_init_pool(CustomData *data, int totelem, const char htype)
BLI_assert(data->pool == NULL);
switch (htype) {
- case BM_VERT: chunksize = 512; break;
- case BM_EDGE: chunksize = 1024; break;
- case BM_LOOP: chunksize = 2048; break;
- case BM_FACE: chunksize = 512; break;
- case BM_ALL: chunksize = 512; break; /* use this when its undefined */
+ case BM_VERT: chunksize = bm_mesh_chunksize_default.totvert; break;
+ case BM_EDGE: chunksize = bm_mesh_chunksize_default.totedge; break;
+ case BM_LOOP: chunksize = bm_mesh_chunksize_default.totloop; break;
+ case BM_FACE: chunksize = bm_mesh_chunksize_default.totface; break;
default:
BLI_assert(0);
chunksize = 512;