diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-05-06 22:23:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-05-06 22:23:07 +0300 |
commit | 4d7b0e4fe35732687fb01625ede63f8a1b762d37 (patch) | |
tree | b82d9e2b55b9e758cc6ddc22423c42c3401a318b /source/blender/bmesh | |
parent | c740027e309875e7008dfcfd1f2a611c788f0368 (diff) |
Correct own error: is_manifold_region on wire vert
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_queries.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/bmesh/intern/bmesh_queries.c b/source/blender/bmesh/intern/bmesh_queries.c index 63e36178e0f..9bc45025456 100644 --- a/source/blender/bmesh/intern/bmesh_queries.c +++ b/source/blender/bmesh/intern/bmesh_queries.c @@ -1010,10 +1010,12 @@ int BM_loop_region_loops_count(BMLoop *l) bool BM_vert_is_manifold_region(const BMVert *v) { BMLoop *l_first = BM_vert_find_first_loop((BMVert *)v); - int count, count_total; - - count = BM_loop_region_loops_count_ex(l_first, &count_total); - return (count == count_total); + if (l_first) { + int count, count_total; + count = BM_loop_region_loops_count_ex(l_first, &count_total); + return (count == count_total); + } + return true; } /** |