diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2012-05-15 00:59:08 +0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2012-05-15 00:59:08 +0400 |
commit | 0de912b82d453ac7f886a794bd192be65a2b0aa9 (patch) | |
tree | 69363f29a51dcaa37e8049fe7c66989ff036ddea /source/blender/bmesh/operators/bmo_hull.c | |
parent | f87fda5864df88786b8afea9f66babd220bf2c03 (diff) |
Partial fix for bug #31458 Convex Hull operator crash
Change hull's point/triangle side test to > rather than >=.
This seems to fix the (infinite?) loop, but not the crash.
Diffstat (limited to 'source/blender/bmesh/operators/bmo_hull.c')
-rw-r--r-- | source/blender/bmesh/operators/bmo_hull.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/bmesh/operators/bmo_hull.c b/source/blender/bmesh/operators/bmo_hull.c index 0b5a06e471e..20d0160311d 100644 --- a/source/blender/bmesh/operators/bmo_hull.c +++ b/source/blender/bmesh/operators/bmo_hull.c @@ -161,7 +161,7 @@ static GHash *hull_triangles_v_outside(GHash *hull_triangles, const BMVert *v) GHASH_ITER (iter, hull_triangles) { HullTriangle *t = BLI_ghashIterator_getKey(&iter); - if (hull_point_tri_side(t, v->co) >= 0) + if (hull_point_tri_side(t, v->co) > 0) BLI_ghash_insert(outside, t, NULL); } |