From 55d3277d0c8939ce6ab9de3a7b34bfc3eec41254 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 14 Aug 2014 12:49:02 +1000 Subject: BMesh: use a smaller dist3 threshold Matches array modifier remove-doubles --- source/blender/bmesh/operators/bmo_removedoubles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/bmesh/operators') diff --git a/source/blender/bmesh/operators/bmo_removedoubles.c b/source/blender/bmesh/operators/bmo_removedoubles.c index 954f31fc4a8..75f9feef413 100644 --- a/source/blender/bmesh/operators/bmo_removedoubles.c +++ b/source/blender/bmesh/operators/bmo_removedoubles.c @@ -529,7 +529,7 @@ static void bmesh_find_doubles_common(BMesh *bm, BMOperator *op, const float dist = BMO_slot_float_get(op->slots_in, "dist"); const float dist_sq = dist * dist; - const float dist3 = dist * 3.0f; + const float dist3 = (M_SQRT3 + 0.00005f) * dist; /* Just above sqrt(3) */ /* Test whether keep_verts arg exists and is non-empty */ if (BMO_slot_exists(op->slots_in, "keep_verts")) { -- cgit v1.2.3