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:
authorBastien Montagne <montagne29@wanadoo.fr>2015-10-18 13:09:42 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-10-29 13:10:13 +0300
commit34def18764e6ce342cf15d1d0a8c91f02dfd757b (patch)
tree280858841ee08155efe6a8fd777d4212e0823bb8
parent0afdd1139b6e0a2a71f6abcbe18b4b4a42e18da1 (diff)
Fix T46520: mathutils.bvhtree crashes with distance input.
Should be backported to 'a' release.
-rw-r--r--source/blender/python/mathutils/mathutils_bvhtree.c2
1 files changed, 1 insertions, 1 deletions
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;
}