Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-05-06 22:23:07 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-05-06 22:23:07 +0300
commit4d7b0e4fe35732687fb01625ede63f8a1b762d37 (patch)
treeb82d9e2b55b9e758cc6ddc22423c42c3401a318b /source/blender/bmesh/intern/bmesh_queries.c
parentc740027e309875e7008dfcfd1f2a611c788f0368 (diff)
Correct own error: is_manifold_region on wire vert
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_queries.c')
-rw-r--r--source/blender/bmesh/intern/bmesh_queries.c10
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;
}
/**