From 90b569745960ef78e2f20bb8b826dba8b52adee3 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Sun, 18 Jan 2015 18:41:47 +0100 Subject: [PATCH] Fix `mathutils.barycentric_transform()` Dummy typo, we need a 3D vector here... --- source/blender/python/mathutils/mathutils_geometry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/python/mathutils/mathutils_geometry.c b/source/blender/python/mathutils/mathutils_geometry.c index b496ee1fbf6..6b8c03de12c 100644 --- a/source/blender/python/mathutils/mathutils_geometry.c +++ b/source/blender/python/mathutils/mathutils_geometry.c @@ -971,7 +971,7 @@ static PyObject *M_Geometry_barycentric_transform(PyObject *UNUSED(self), PyObje return NULL; } - if (mathutils_array_parse(pt_src, 2, 2 | MU_ARRAY_SPILL, py_pt_src, error_prefix) == -1) { + if (mathutils_array_parse(pt_src, 3, 3 | MU_ARRAY_SPILL, py_pt_src, error_prefix) == -1) { return NULL; } for (i = 0; i < ARRAY_SIZE(tri_src); i++) {