[Bf-blender-cvs] [5551948] master: Fix T46520: mathutils.bvhtree crashes with distance input.
Bastien Montagne
noreply at git.blender.org
Sun Oct 18 12:10:10 CEST 2015
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;
}
More information about the Bf-blender-cvs
mailing list