diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-06-28 23:06:22 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-06-28 23:57:48 +0400 |
commit | f32079d4b9f0ee565dc4bb63a4ef25286f183d0e (patch) | |
tree | 10d24971269b58ebb42a35e3006bde9f5e21db5b /source/blender/bmesh/tools/bmesh_bisect_plane.c | |
parent | 00c8a691e921e5e838b96e92290bd9901e1bf3c4 (diff) |
BLI_stackdefines
Bounds check the stack while debugging, also add STACK_PEEK
Diffstat (limited to 'source/blender/bmesh/tools/bmesh_bisect_plane.c')
-rw-r--r-- | source/blender/bmesh/tools/bmesh_bisect_plane.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/bmesh/tools/bmesh_bisect_plane.c b/source/blender/bmesh/tools/bmesh_bisect_plane.c index 0bd68e7a461..0ecb8066ac1 100644 --- a/source/blender/bmesh/tools/bmesh_bisect_plane.c +++ b/source/blender/bmesh/tools/bmesh_bisect_plane.c @@ -118,7 +118,7 @@ static void bm_face_bisect_verts(BMesh *bm, BMFace *f, const float plane[4], con BMLoop *l_iter, *l_first; bool use_dirs[3] = {false, false, false}; - STACK_INIT(vert_split_arr); + STACK_INIT(vert_split_arr, f_len_orig); l_first = BM_FACE_FIRST_LOOP(f); @@ -224,7 +224,7 @@ static void bm_face_bisect_verts(BMesh *bm, BMFace *f, const float plane[4], con * while not all that nice, typically there are < 5 resulting faces, * so its not _that_ bad. */ - STACK_INIT(face_split_arr); + STACK_INIT(face_split_arr, STACK_SIZE(vert_split_arr)); STACK_PUSH(face_split_arr, f); for (i = 0; i < STACK_SIZE(vert_split_arr) - 1; i++) { |