From 32157d8d014bccbdc8b84ad7228986ab7078467f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 29 Jul 2015 12:01:55 +1000 Subject: Triangulate wasn't clearing arena after each use --- source/blender/bmesh/intern/bmesh_polygon.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/bmesh') 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 */ -- cgit v1.2.3