From f32079d4b9f0ee565dc4bb63a4ef25286f183d0e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 29 Jun 2014 05:06:22 +1000 Subject: BLI_stackdefines Bounds check the stack while debugging, also add STACK_PEEK --- source/blender/modifiers/intern/MOD_solidify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/modifiers') diff --git a/source/blender/modifiers/intern/MOD_solidify.c b/source/blender/modifiers/intern/MOD_solidify.c index 14a6b631bd6..95b0c37933c 100644 --- a/source/blender/modifiers/intern/MOD_solidify.c +++ b/source/blender/modifiers/intern/MOD_solidify.c @@ -274,8 +274,8 @@ static DerivedMesh *applyModifier( face_nors, true); } - STACK_INIT(new_vert_arr); - STACK_INIT(new_edge_arr); + STACK_INIT(new_vert_arr, numVerts * 2); + STACK_INIT(new_edge_arr, numEdges * 2); if (smd->flag & MOD_SOLIDIFY_RIM) { BLI_bitmap *orig_mvert_tag = BLI_BITMAP_NEW(numVerts, __func__); -- cgit v1.2.3