[Bf-blender-cvs] [34def18] blender-v2.76-release: Fix T46520: mathutils.bvhtree crashes with distance input.
Bastien Montagne
noreply at git.blender.org
Thu Oct 29 12:07:26 CET 2015
Commit: 34def18764e6ce342cf15d1d0a8c91f02dfd757b
Author: Bastien Montagne
Date: Sun Oct 18 12:09:42 2015 +0200
Branches: blender-v2.76-release
https://developer.blender.org/rB34def18764e6ce342cf15d1d0a8c91f02dfd757b
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;
}
More information about the Bf-blender-cvs
mailing list