diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-05-02 10:12:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-05-02 21:41:39 +0300 |
commit | de031b7c89cc5c5dd079d407ebd3a690b1c4b567 (patch) | |
tree | 4169fbb3e78062e472ec4c8502c0153ba6619bae /source | |
parent | c826566ce341cfa6bb02c733a5c70e26542bee9e (diff) |
BMesh: replace radial count with simple checks
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_core.c | 3 | ||||
-rw-r--r-- | source/blender/bmesh/intern/bmesh_queries.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/bmesh/intern/bmesh_core.c b/source/blender/bmesh/intern/bmesh_core.c index 7083642f225..06bd6229119 100644 --- a/source/blender/bmesh/intern/bmesh_core.c +++ b/source/blender/bmesh/intern/bmesh_core.c @@ -1053,8 +1053,9 @@ static bool disk_is_flagged(BMVert *v, const char api_flag) return false; } - if (bmesh_radial_length(l) == 1) + if (BM_edge_is_boundary(l->e)) { return false; + } do { if (!BM_ELEM_API_FLAG_TEST(l->f, api_flag)) diff --git a/source/blender/bmesh/intern/bmesh_queries.c b/source/blender/bmesh/intern/bmesh_queries.c index 61328a525f1..296bde9eb33 100644 --- a/source/blender/bmesh/intern/bmesh_queries.c +++ b/source/blender/bmesh/intern/bmesh_queries.c @@ -877,7 +877,7 @@ bool BM_vert_is_manifold(const BMVert *v) /* loose edge or edge shared by more than two faces, * edges with 1 face user are OK, otherwise we could * use BM_edge_is_manifold() here */ - if (e->l == NULL || bmesh_radial_length(e->l) > 2) { + if (e->l == NULL || (e->l != e->l->radial_next->radial_next)) { return false; } len++; |