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-04-09 04:07:47 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-04-09 04:07:47 +0400
commit79d353eebde28c14c432f0831db0c564c867f471 (patch)
treeb8c3de9303fa268f32dcc79f5742befdedc76ea9 /source/blender/bmesh/operators/bmo_beautify.c
parent7cb4d78b5231671a6c05068fca907dbecac2d4f4 (diff)
fix for error in recent changes to beautify, clear edge tags before use.
Diffstat (limited to 'source/blender/bmesh/operators/bmo_beautify.c')
-rw-r--r--source/blender/bmesh/operators/bmo_beautify.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/bmesh/operators/bmo_beautify.c b/source/blender/bmesh/operators/bmo_beautify.c
index 68d0c662b2c..9d9342afa4e 100644
--- a/source/blender/bmesh/operators/bmo_beautify.c
+++ b/source/blender/bmesh/operators/bmo_beautify.c
@@ -374,6 +374,7 @@ static void bm_mesh_beautify_fill(BMesh *bm, BMEdge **edge_array, const int edge
void bmo_beautify_fill_exec(BMesh *bm, BMOperator *op)
{
+ BMIter iter;
BMOIter siter;
BMFace *f;
BMEdge *e;
@@ -387,6 +388,10 @@ void bmo_beautify_fill_exec(BMesh *bm, BMOperator *op)
}
}
+ BM_ITER_MESH (e, &iter, bm, BM_EDGES_OF_MESH) {
+ BM_elem_flag_disable(e, BM_ELEM_TAG);
+ }
+
/* will over alloc if some edges can't be rotated */
edge_array = MEM_mallocN(sizeof(*edge_array) * BMO_slot_buffer_count(op->slots_in, "edges"), __func__);