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-04 07:25:46 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2012-05-04 07:25:46 +0400
commit4ea8c9ab38bc045dcd6ecb01104be18f119580d8 (patch)
tree70cf05ec5dc976d3e4c0222913b5ef2a18563d56 /source/blender/bmesh
parente3535e884a08b631ee31964e0d3d62c976a004e4 (diff)
Small hull bmop fix, distance check from plane needs absolute value.
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 741ec1fe2d0..1cd095f72e4 100644
--- a/source/blender/bmesh/operators/bmo_hull.c
+++ b/source/blender/bmesh/operators/bmo_hull.c
@@ -478,7 +478,7 @@ static int hull_find_large_tetrahedron(BMesh *bm, BMOperator *op,
normal_tri_v3(plane_normal, tetra[0]->co, tetra[1]->co, tetra[2]->co);
BMO_ITER (v, &oiter, bm, op, "input", BM_VERT) {
if (!BMO_elem_flag_test(bm, v, HULL_FLAG_TETRA_VERT)) {
- float dist = dist_to_plane_v3(v->co, tetra[0]->co, plane_normal);
+ float dist = fabsf(dist_to_plane_v3(v->co, tetra[0]->co, plane_normal));
if (dist > largest_dist) {
largest_dist = dist;
tetra[3] = v;