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>2011-07-04 12:13:27 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-07-04 12:13:27 +0400
commitaa1668c6f8a70e41b97b67f31647dbec382e19f7 (patch)
tree1691c4e6b1ac3868ebba46760354337b653f06d7 /source/blender/blenlib
parent0e0eba9f79b122eeef613fbd3733b339a95094a4 (diff)
fix for own error in intersect_line_sphere_2d(), using 3d function on 2d vectors
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/math_geom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/math_geom.c b/source/blender/blenlib/intern/math_geom.c
index 9d945e9baa3..fc329fe1bf1 100644
--- a/source/blender/blenlib/intern/math_geom.c
+++ b/source/blender/blenlib/intern/math_geom.c
@@ -430,7 +430,7 @@ int isect_line_sphere_v2(const float l1[2], const float l2[2],
l2[1] - l1[1]
};
- const float a= dot_v3v3(ldir, ldir);
+ const float a= dot_v2v2(ldir, ldir);
const float b= 2.0f *
(ldir[0] * (l1[0] - sp[0]) +