Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-07-29 05:01:55 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-07-29 05:01:55 +0300
commit32157d8d014bccbdc8b84ad7228986ab7078467f (patch)
treef6b0709fc14c568e32b8f69fed14de064f6251b3 /source/blender/bmesh/intern/bmesh_polygon.c
parent339915a96269ffdd8f48335dda050f4aa071caed (diff)
Triangulate wasn't clearing arena after each use
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_polygon.c')
-rw-r--r--source/blender/bmesh/intern/bmesh_polygon.c2
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 */