Commit: e0db0f84ac28ce14ead649140023e46e65dfc2f7
Author: Bastien Montagne
Date:   Sun Jan 4 10:11:21 2015 +0100
Branches: master
https://developer.blender.org/rBe0db0f84ac28ce14ead649140023e46e65dfc2f7

Fix T43119: mathutils.intersect_point_line always returns a 2D vector as first 
value.

Trivial, safe for final 2.73.

===================================================================

M       source/blender/python/mathutils/mathutils_geometry.c

===================================================================

diff --git a/source/blender/python/mathutils/mathutils_geometry.c 
b/source/blender/python/mathutils/mathutils_geometry.c
index 2bf596b..c536838 100644
--- a/source/blender/python/mathutils/mathutils_geometry.c
+++ b/source/blender/python/mathutils/mathutils_geometry.c
@@ -745,7 +745,7 @@ static PyObject *M_Geometry_intersect_point_line(PyObject 
*UNUSED(self), PyObjec
        }
 
        /* accept 2d verts */
-       if (((mathutils_array_parse(pt, 2, 3 | MU_ARRAY_SPILL | MU_ARRAY_ZERO, 
py_pt, error_prefix) != -1) &&
+       if ((((size = mathutils_array_parse(pt, 2, 3 | MU_ARRAY_SPILL | 
MU_ARRAY_ZERO, py_pt, error_prefix)) != -1) &&
             (mathutils_array_parse(line_a, 2, 3 | MU_ARRAY_SPILL | 
MU_ARRAY_ZERO, py_line_a, error_prefix) != -1) &&
             (mathutils_array_parse(line_b, 3, 3 | MU_ARRAY_SPILL | 
MU_ARRAY_ZERO, py_line_b, error_prefix) != -1)) == 0)
        {

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to