[Bf-blender-cvs] [e1819cc] master: Fix T40948: Fill holes fails in certain case
Campbell Barton
noreply at git.blender.org
Thu Aug 7 20:30:46 CEST 2014
Commit: e1819cc9183e2f167c42025581c96a1488911bef
Author: Campbell Barton
Date: Fri Aug 8 04:29:30 2014 +1000
Branches: master
https://developer.blender.org/rBe1819cc9183e2f167c42025581c96a1488911bef
Fix T40948: Fill holes fails in certain case
===================================================================
M source/blender/bmesh/tools/bmesh_edgenet.c
===================================================================
diff --git a/source/blender/bmesh/tools/bmesh_edgenet.c b/source/blender/bmesh/tools/bmesh_edgenet.c
index a08aa61..1328b81 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));
}
}
More information about the Bf-blender-cvs
mailing list