Commit: 32157d8d014bccbdc8b84ad7228986ab7078467f
Author: Campbell Barton
Date:   Wed Jul 29 12:01:55 2015 +1000
Branches: master
https://developer.blender.org/rB32157d8d014bccbdc8b84ad7228986ab7078467f

Triangulate wasn't clearing arena after each use

===================================================================

M       source/blender/bmesh/intern/bmesh_polygon.c

===================================================================

diff --git a/source/blender/bmesh/intern/bmesh_polygon.c 
b/source/blender/bmesh/intern/bmesh_polygon.c
index 34bb7ae..6a75540 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 */

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to