[Bf-blender-cvs] [90b5697] master: Fix `mathutils.barycentric_transform()`

Bastien Montagne noreply at git.blender.org
Sun Jan 18 18:42:43 CET 2015


Commit: 90b569745960ef78e2f20bb8b826dba8b52adee3
Author: Bastien Montagne
Date:   Sun Jan 18 18:41:47 2015 +0100
Branches: master
https://developer.blender.org/rB90b569745960ef78e2f20bb8b826dba8b52adee3

Fix `mathutils.barycentric_transform()`

Dummy typo, we need a 3D vector here...

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

M	source/blender/python/mathutils/mathutils_geometry.c

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

diff --git a/source/blender/python/mathutils/mathutils_geometry.c b/source/blender/python/mathutils/mathutils_geometry.c
index b496ee1..6b8c03d 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++) {




More information about the Bf-blender-cvs mailing list