BLI_stackdefines
[blender.git] / source / blender / bmesh / operators / bmo_bisect_plane.c
index 378cf405e1663bdaff5c7326583d2ee588c7efc7..bed1ea5cb949702dfc6bdc3e0dca1e4c4433a9fa 100644 (file)
@@ -90,7 +90,7 @@ void bmo_bisect_plane_exec(BMesh *bm, BMOperator *op)
                plane_outer[3] = plane[3] - dist;
                plane_inner[3] = plane[3] + dist;
 
-               STACK_INIT(vert_arr);
+               STACK_INIT(vert_arr, vert_arr_max);
 
                BMO_ITER (v, &siter, op->slots_in, "geom", BM_VERT) {
                        if ((clear_outer && plane_point_side_v3(plane_outer, v->co) > 0.0f) ||