diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-01-08 20:07:17 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-01-08 20:15:59 +0400 |
commit | cdeb3c3922b6715b87bde6eefa859baa83ebc5e4 (patch) | |
tree | 8b4febc012efc90745250303b862f07e818b9280 /source/blender/python/mathutils/mathutils_geometry.c | |
parent | d5c9b509ec0e06318186f25212ffb2ba12177692 (diff) |
Fix for incorrect use of abs() in intersect_sphere_sphere_2d
Diffstat (limited to 'source/blender/python/mathutils/mathutils_geometry.c')
-rw-r--r-- | source/blender/python/mathutils/mathutils_geometry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/mathutils/mathutils_geometry.c b/source/blender/python/mathutils/mathutils_geometry.c index 108ebfa3a94..10f4e576ceb 100644 --- a/source/blender/python/mathutils/mathutils_geometry.c +++ b/source/blender/python/mathutils/mathutils_geometry.c @@ -298,7 +298,7 @@ static PyObject *M_Geometry_intersect_sphere_sphere_2d(PyObject *UNUSED(self), P if (/* out of range */ (dist > rad_a + rad_b) || /* fully-contained in the other */ - (dist < abs(rad_a - rad_b)) || + (dist < fabsf(rad_a - rad_b)) || /* co-incident */ (dist < FLT_EPSILON)) { |