[Bf-blender-cvs] [7cd2698] mathutils_bvhtree: zero 3rd member of 2d arrays passed to mathutils.kdtree
Campbell Barton
noreply at git.blender.org
Wed Jul 15 18:36:01 CEST 2015
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;
}
More information about the Bf-blender-cvs
mailing list