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:
authorCampbell Barton <ideasman42@gmail.com>2014-01-08 20:07:17 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-01-08 20:15:59 +0400
commitcdeb3c3922b6715b87bde6eefa859baa83ebc5e4 (patch)
tree8b4febc012efc90745250303b862f07e818b9280 /source/blender/python/mathutils/mathutils_geometry.c
parentd5c9b509ec0e06318186f25212ffb2ba12177692 (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.c2
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))
{