diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-07-22 12:12:50 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-07-22 12:12:50 +0400 |
commit | 7398c4977644efc7da06cf7e705d2b9d752b2706 (patch) | |
tree | a79997c05d2ffed49c1ab180548cdf272f63ac3e /source/blender/bmesh/operators/bmo_normals.c | |
parent | bb1503417b14489dfaf38813bfe6e64e7fef0350 (diff) |
add support for BM_mesh_calc_face_groups to use vertex connectivity (not currently used yet)
Diffstat (limited to 'source/blender/bmesh/operators/bmo_normals.c')
-rw-r--r-- | source/blender/bmesh/operators/bmo_normals.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/bmesh/operators/bmo_normals.c b/source/blender/bmesh/operators/bmo_normals.c index 4291fc22793..9d86e7ab275 100644 --- a/source/blender/bmesh/operators/bmo_normals.c +++ b/source/blender/bmesh/operators/bmo_normals.c @@ -40,9 +40,9 @@ #define FACE_FLIP (1 << 1) #define FACE_TEMP (1 << 2) -static bool bmo_recalc_normal_edge_filter_cb(BMEdge *e, void *UNUSED(user_data)) +static bool bmo_recalc_normal_edge_filter_cb(BMElem *ele, void *UNUSED(user_data)) { - return BM_edge_is_manifold(e); + return BM_edge_is_manifold((BMEdge *)ele); } /** @@ -115,7 +115,7 @@ static void bmo_recalc_face_normals_array(BMesh *bm, BMFace **faces, const int f do { BMLoop *l_other = l_iter->radial_next; - if ((l_other != l_iter) && bmo_recalc_normal_edge_filter_cb(l_iter->e, NULL)) { + if ((l_other != l_iter) && bmo_recalc_normal_edge_filter_cb((BMElem *)l_iter->e, NULL)) { if (!BMO_elem_flag_test(bm, l_other->f, FACE_TEMP)) { BMO_elem_flag_enable(bm, l_other->f, FACE_TEMP); BMO_elem_flag_set(bm, l_other->f, FACE_FLIP, (l_other->v == l_iter->v) != flip_state); @@ -153,7 +153,7 @@ void bmo_recalc_face_normals_exec(BMesh *bm, BMOperator *op) int (*group_index)[2]; const int group_tot = BM_mesh_calc_face_groups(bm, groups_array, &group_index, - NULL, bmo_recalc_normal_edge_filter_cb); + bmo_recalc_normal_edge_filter_cb, NULL, BM_EDGE); int i; |