BLI_stackdefines
[blender.git] / source / blender / modifiers / intern / MOD_solidify.c
index 14a6b631bd6d330c8d7bd96509a1a0a3b900f49f..95b0c37933ced52d221d133f0009ce0b7e4ff84b 100644 (file)
@@ -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__);