diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-06-03 21:16:20 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-06-03 21:16:20 +0400 |
commit | e6d75d8974ba1029ee485e7a26e74afaa838b2e3 (patch) | |
tree | c03e40482e699444628b2737d465eef0deab60d2 /source/blender/bmesh/operators | |
parent | 9025841cfd1a9fbfca87e4532d1f5ea75b04e9be (diff) |
fix [#31674] BMesh Corrupt Stack around BMVert array "verts" - ONLY ON DEBUG VERSION
Diffstat (limited to 'source/blender/bmesh/operators')
-rw-r--r-- | source/blender/bmesh/operators/bmo_create.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/bmesh/operators/bmo_create.c b/source/blender/bmesh/operators/bmo_create.c index ebdff8bf7aa..f1063d1ca42 100644 --- a/source/blender/bmesh/operators/bmo_create.c +++ b/source/blender/bmesh/operators/bmo_create.c @@ -1403,9 +1403,11 @@ void bmo_contextual_create_exec(BMesh *bm, BMOperator *op) BM_ITER_MESH (v, &iter, bm, BM_VERTS_OF_MESH) { if (BMO_elem_flag_test(bm, v, ELE_NEW)) { verts[amount] = v; + if (amount == 3) { + break; + } amount++; - if (amount > 4) break; } } |