diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-01-18 20:41:47 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-01-18 20:41:47 +0300 |
commit | 90b569745960ef78e2f20bb8b826dba8b52adee3 (patch) | |
tree | 285bb030dbcc7515f61fbd9653b0e78315650b1f | |
parent | ecc58da8f1d110498e700b804cb44adba1145113 (diff) |
Fix `mathutils.barycentric_transform()`
Dummy typo, we need a 3D vector here...
-rw-r--r-- | source/blender/python/mathutils/mathutils_geometry.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++) { |