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/blenkernel | |
parent | 00c8a691e921e5e838b96e92290bd9901e1bf3c4 (diff) |
BLI_stackdefines
Bounds check the stack while debugging, also add STACK_PEEK
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/cdderivedmesh.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/blenkernel/intern/cdderivedmesh.c b/source/blender/blenkernel/intern/cdderivedmesh.c index 2d7e06c7308..3f8edbcf1be 100644 --- a/source/blender/blenkernel/intern/cdderivedmesh.c +++ b/source/blender/blenkernel/intern/cdderivedmesh.c @@ -2602,15 +2602,15 @@ DerivedMesh *CDDM_merge_verts(DerivedMesh *dm, const int *vtargetmap, const int int i, j, c; - STACK_INIT(oldv); - STACK_INIT(olde); - STACK_INIT(oldl); - STACK_INIT(oldp); - - STACK_INIT(mvert); - STACK_INIT(medge); - STACK_INIT(mloop); - STACK_INIT(mpoly); + STACK_INIT(oldv, totvert_final); + STACK_INIT(olde, totedge); + STACK_INIT(oldl, totloop); + STACK_INIT(oldp, totpoly); + + STACK_INIT(mvert, totvert_final); + STACK_INIT(medge, totedge); + STACK_INIT(mloop, totloop); + STACK_INIT(mpoly, totpoly); /* fill newl with destination vertex indices */ mv = cddm->mvert; |