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:
authorNicholas Bishop <nicholasbishop@gmail.com>2012-05-15 00:59:08 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2012-05-15 00:59:08 +0400
commit0de912b82d453ac7f886a794bd192be65a2b0aa9 (patch)
tree69363f29a51dcaa37e8049fe7c66989ff036ddea /source/blender/bmesh
parentf87fda5864df88786b8afea9f66babd220bf2c03 (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')
-rw-r--r--source/blender/bmesh/operators/bmo_hull.c2
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);
}