From c4345a808c727e4a7052872bce91e35b74c9eea3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 2 Feb 2014 17:08:26 +1100 Subject: Smallhash: add reserve option to avoid resizing when size is known --- source/blender/bmesh/operators/bmo_triangulate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/bmesh/operators/bmo_triangulate.c') 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); -- cgit v1.2.3