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>2013-05-15 09:56:49 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-05-15 09:56:49 +0400
commitbe409d446c5d34d41d35c1ca9f7ec82547a152e5 (patch)
tree3d8a41c487ff327f45fb4f3fe8ba588d34951f52 /source/blender/bmesh/operators/bmo_utils.c
parent5e4139c50a4048fefb6835451506147519d00565 (diff)
fix for own recent change with normal calculation (with no faces it wasn't freeing 0 byte allocation).
Diffstat (limited to 'source/blender/bmesh/operators/bmo_utils.c')
-rw-r--r--source/blender/bmesh/operators/bmo_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/bmesh/operators/bmo_utils.c b/source/blender/bmesh/operators/bmo_utils.c
index 2a8c8c8e2cd..14870dc918a 100644
--- a/source/blender/bmesh/operators/bmo_utils.c
+++ b/source/blender/bmesh/operators/bmo_utils.c
@@ -311,7 +311,7 @@ void bmo_recalc_face_normals_exec(BMesh *bm, BMOperator *op)
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 @@ void bmo_recalc_face_normals_exec(BMesh *bm, BMOperator *op)
* 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);