[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56810] trunk/blender/source/blender/bmesh /operators/bmo_utils.c: fix for own recent change with normal calculation ( with no faces it wasn't freeing 0 byte allocation).
Campbell Barton
ideasman42 at gmail.com
Wed May 15 07:56:49 CEST 2013
Revision: 56810
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56810
Author: campbellbarton
Date: 2013-05-15 05:56:49 +0000 (Wed, 15 May 2013)
Log Message:
-----------
fix for own recent change with normal calculation (with no faces it wasn't freeing 0 byte allocation).
Modified Paths:
--------------
trunk/blender/source/blender/bmesh/operators/bmo_utils.c
Modified: trunk/blender/source/blender/bmesh/operators/bmo_utils.c
===================================================================
--- trunk/blender/source/blender/bmesh/operators/bmo_utils.c 2013-05-15 01:30:03 UTC (rev 56809)
+++ trunk/blender/source/blender/bmesh/operators/bmo_utils.c 2013-05-15 05:56:49 UTC (rev 56810)
@@ -311,7 +311,7 @@
BMIter liter, liter2;
BMOIter siter;
BMFace *f, *startf;
- BMFace **fstack = MEM_mallocN(sizeof(*fstack) * BMO_slot_buffer_count(op->slots_in, "faces"), __func__);
+ BMFace **fstack;
STACK_DECLARE(fstack);
BMLoop *l, *l2;
float maxx, maxx_test, cent[3];
@@ -358,7 +358,7 @@
* have the same winding. this is done recursively, using a manual
* stack (if we use simple function recursion, we'd end up overloading
* the stack on large meshes). */
-
+ fstack = MEM_mallocN(sizeof(*fstack) * BMO_slot_buffer_count(op->slots_in, "faces"), __func__);
STACK_INIT(fstack);
STACK_PUSH(fstack, startf);
BMO_elem_flag_enable(bm, startf, FACE_VIS);
More information about the Bf-blender-cvs
mailing list