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
committerBastien Montagne <montagne29@wanadoo.fr>2015-10-18 13:09:42 +0300
commit5551948b31691aa1ce817d78c13c173823a4dd6c (patch)
tree32ae00121727d9231be81908780e7a94b3fc567e
parent94791bd5da6e90a550471276e3368246efe3795d (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;
}