diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-07-29 05:01:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-07-29 05:01:55 +0300 |
commit | 32157d8d014bccbdc8b84ad7228986ab7078467f (patch) | |
tree | f6b0709fc14c568e32b8f69fed14de064f6251b3 /source/blender | |
parent | 339915a96269ffdd8f48335dda050f4aa071caed (diff) |
Triangulate wasn't clearing arena after each use
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_polygon.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/bmesh/intern/bmesh_polygon.c b/source/blender/bmesh/intern/bmesh_polygon.c index 34bb7ae4416..6a75540eacf 100644 --- a/source/blender/bmesh/intern/bmesh_polygon.c +++ b/source/blender/bmesh/intern/bmesh_polygon.c @@ -872,6 +872,8 @@ void BM_face_triangulate( pf_arena, pf_heap, pf_ehash); } + BLI_memarena_clear(pf_arena); + /* loop over calculated triangles and create new geometry */ for (i = 0; i < totfilltri; i++) { /* the order is reverse, otherwise the normal is flipped */ |