Commit: 34def18764e6ce342cf15d1d0a8c91f02dfd757b
Author: Bastien Montagne
Date:   Sun Oct 18 12:09:42 2015 +0200
Branches: blender-v2.76a-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;
                }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to