Commit: 7cd269887060ae46f343f6612a8640bb83fb8b71
Author: Campbell Barton
Date:   Thu Jul 16 02:30:31 2015 +1000
Branches: mathutils_bvhtree
https://developer.blender.org/rB7cd269887060ae46f343f6612a8640bb83fb8b71

zero 3rd member of 2d arrays passed to mathutils.kdtree

===================================================================

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 e44f630..00b2214 100644
--- a/source/blender/python/mathutils/mathutils_bvhtree.c
+++ b/source/blender/python/mathutils/mathutils_bvhtree.c
@@ -197,8 +197,8 @@ static bool py_BVHTreeDerivedMesh_ray_cast_parse_args(
                return false;
        }
 
-       if (mathutils_array_parse(r_co, 2, 3, py_co, error_prefix) == -1 ||
-           mathutils_array_parse(r_direction, 2, 3, py_direction, 
error_prefix) == -1)
+       if (mathutils_array_parse(r_co, 2, 3 | MU_ARRAY_ZERO, py_co, 
error_prefix) == -1 ||
+           mathutils_array_parse(r_direction, 2, 3 | MU_ARRAY_ZERO, 
py_direction, error_prefix) == -1)
        {
                return false;
        }
@@ -235,7 +235,7 @@ static bool py_BVHTreeDerivedMesh_find_nearest_parse_args(
                return false;
        }
 
-       if (mathutils_array_parse(r_co, 2, 3, py_co, error_prefix) == -1) {
+       if (mathutils_array_parse(r_co, 2, 3 | MU_ARRAY_ZERO, py_co, 
error_prefix) == -1) {
                return false;
        }

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

Reply via email to