From 5551948b31691aa1ce817d78c13c173823a4dd6c Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Sun, 18 Oct 2015 12:09:42 +0200 Subject: Fix T46520: mathutils.bvhtree crashes with distance input. Should be backported to 'a' release. --- source/blender/python/mathutils/mathutils_bvhtree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender') diff --git a/source/blender/python/mathutils/mathutils_bvhtree.c b/source/blender/python/mathutils/mathutils_bvhtree.c index bf06b889e25..9deb57d6760 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; } -- cgit v1.2.3