diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-08-07 22:29:30 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-08-07 22:30:24 +0400 |
commit | e1819cc9183e2f167c42025581c96a1488911bef (patch) | |
tree | d4ef5754e770c76508c80f9eaf756d09acdefe5a /source | |
parent | 57c4871146269a34522ad50c43cb55fe773f3bdf (diff) |
Fix T40948: Fill holes fails in certain case
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/bmesh/tools/bmesh_edgenet.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/bmesh/tools/bmesh_edgenet.c b/source/blender/bmesh/tools/bmesh_edgenet.c index a08aa6184b5..1328b81b746 100644 --- a/source/blender/bmesh/tools/bmesh_edgenet.c +++ b/source/blender/bmesh/tools/bmesh_edgenet.c @@ -393,8 +393,8 @@ static LinkNode *bm_edgenet_path_calc_best( if (path == NULL) { return NULL; } - else if (path_cost <= 1) { - /* any face that takes 1-2 iterations to find we consider valid */ + else if (path_cost < 1) { + /* any face that takes 1 iteration to find we consider valid */ return path; } else { @@ -465,7 +465,6 @@ void BM_mesh_edgenet(BMesh *bm, if (use_edge_tag == false) { BM_ITER_MESH (e, &iter, bm, BM_EDGES_OF_MESH) { - BM_elem_flag_enable(e, BM_ELEM_TAG); BM_elem_flag_set(e, BM_ELEM_TAG, bm_edge_step_ok(e)); } } |