[Bf-blender-cvs] [4d7b0e4] master: Correct own error: is_manifold_region on wire vert
Campbell Barton
noreply at git.blender.org
Wed May 6 21:50:51 CEST 2015
Commit: 4d7b0e4fe35732687fb01625ede63f8a1b762d37
Author: Campbell Barton
Date: Thu May 7 05:23:07 2015 +1000
Branches: master
https://developer.blender.org/rB4d7b0e4fe35732687fb01625ede63f8a1b762d37
Correct own error: is_manifold_region on wire vert
===================================================================
M source/blender/bmesh/intern/bmesh_queries.c
===================================================================
diff --git a/source/blender/bmesh/intern/bmesh_queries.c b/source/blender/bmesh/intern/bmesh_queries.c
index 63e3617..9bc4502 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;
}
/**
More information about the Bf-blender-cvs
mailing list