Commit: 5551948b31691aa1ce817d78c13c173823a4dd6c
Author: Bastien Montagne
Date:   Sun Oct 18 12:09:42 2015 +0200
Branches: master
https://developer.blender.org/rB5551948b31691aa1ce817d78c13c173823a4dd6c

Fix T46520: mathutils.bvhtree crashes with distance input.

Should be backported to 'a' release.

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

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

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

diff --git a/source/blender/python/mathutils/mathutils_bvhtree.c 
b/source/blender/python/mathutils/mathutils_bvhtree.c
index bf06b88..9deb57d 100644
--- a/source/blender/python/mathutils/mathutils_bvhtree.c
+++ b/source/blender/python/mathutils/mathutils_bvhtree.c
@@ -352,7 +352,7 @@ static PyObject *py_bvhtree_ray_cast(PyBVHTree *self, 
PyObject *args)
 
                if (!PyArg_ParseTuple(
                        args, (char *)"OO|f:ray_cast",
-                       &py_co, &py_direction, max_dist))
+                       &py_co, &py_direction, &max_dist))
                {
                        return NULL;
                }

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

Reply via email to