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>2014-02-02 10:08:26 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-02-02 10:08:26 +0400
commitc4345a808c727e4a7052872bce91e35b74c9eea3 (patch)
treed864ab027e91d3881c633461a043a7bc9f26b515 /source/blender/bmesh
parentdcd90d67c8a6e6beae37fc02515b8c75942332ca (diff)
Smallhash: add reserve option to avoid resizing when size is known
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r--source/blender/bmesh/intern/bmesh_core.c2
-rw-r--r--source/blender/bmesh/operators/bmo_triangulate.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/bmesh/intern/bmesh_core.c b/source/blender/bmesh/intern/bmesh_core.c
index c635f9d9d06..bbfee692df4 100644
--- a/source/blender/bmesh/intern/bmesh_core.c
+++ b/source/blender/bmesh/intern/bmesh_core.c
@@ -1971,7 +1971,7 @@ void bmesh_vert_separate(BMesh *bm, BMVert *v, BMVert ***r_vout, int *r_vout_len
int i, maxindex;
BMLoop *l_new;
- BLI_smallhash_init(&visithash);
+ BLI_smallhash_init_ex(&visithash, v_edgetot);
STACK_INIT(stack);
diff --git a/source/blender/bmesh/operators/bmo_triangulate.c b/source/blender/bmesh/operators/bmo_triangulate.c
index a1de265bc56..d26c10c24af 100644
--- a/source/blender/bmesh/operators/bmo_triangulate.c
+++ b/source/blender/bmesh/operators/bmo_triangulate.c
@@ -70,7 +70,7 @@ void bmo_triangle_fill_exec(BMesh *bm, BMOperator *op)
SmallHash hash;
float normal[3], *normal_pt;
- BLI_smallhash_init(&hash);
+ BLI_smallhash_init_ex(&hash, BMO_slot_buffer_count(op->slots_in, "edges"));
BMO_slot_vec_get(op->slots_in, "normal", normal);