diff options
author | Remigiusz Fiedler <migius@gmx.net> | 2009-09-17 02:12:23 +0400 |
---|---|---|
committer | Remigiusz Fiedler <migius@gmx.net> | 2009-09-17 02:12:23 +0400 |
commit | 591a30dab030a90218f37a0c4a8c4474663c7155 (patch) | |
tree | 1bff12f44b63f348816ac85b40d1da7fd462b39e /source/blender/python/generic | |
parent | 90d8088e53293d1f36d9063d5898dd8bd3ddf878 (diff) |
bugfix for LineIntersectLine()
- was imperfect calculation for points marking shortest distance for non-crossing lines in 3d
Diffstat (limited to 'source/blender/python/generic')
-rw-r--r-- | source/blender/python/generic/Mathutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/generic/Mathutils.c b/source/blender/python/generic/Mathutils.c index d354aea6614..431f1987383 100644 --- a/source/blender/python/generic/Mathutils.c +++ b/source/blender/python/generic/Mathutils.c @@ -912,7 +912,7 @@ static PyObject *M_Mathutils_LineIntersect( PyObject * self, PyObject * args ) PyErr_SetString( PyExc_TypeError, "expected 4 vector types\n" ); return NULL; } - if( vec1->size != vec2->size || vec1->size != vec3->size || vec1->size != vec2->size) { + if( vec1->size != vec2->size || vec1->size != vec3->size || vec3->size != vec2->size) { PyErr_SetString( PyExc_TypeError,"vectors must be of the same size\n" ); return NULL; } |