[Bf-blender-cvs] [c82e6fe] blender-v2.77-release: PyAPI: correct function name w/ arg parsing

Campbell Barton noreply at git.blender.org
Fri Mar 4 17:36:10 CET 2016


Commit: c82e6fe80b1d62d04bd91d3a7ed8c46da40995ab
Author: Campbell Barton
Date:   Mon Feb 29 08:51:27 2016 +1100
Branches: blender-v2.77-release
https://developer.blender.org/rBc82e6fe80b1d62d04bd91d3a7ed8c46da40995ab

PyAPI: correct function name w/ arg parsing

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

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

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

diff --git a/source/blender/python/mathutils/mathutils_interpolate.c b/source/blender/python/mathutils/mathutils_interpolate.c
index 4d7841b..c8cb718 100644
--- a/source/blender/python/mathutils/mathutils_interpolate.c
+++ b/source/blender/python/mathutils/mathutils_interpolate.c
@@ -64,9 +64,10 @@ static PyObject *M_Interpolate_poly_3d_calc(PyObject *UNUSED(self), PyObject *ar
 	PyObject *point, *veclist, *ret;
 	int i;
 	
-	if (!PyArg_ParseTuple(args, "OO!:interpolation_weights",
-	                      &veclist,
-	                      &vector_Type, &point))
+	if (!PyArg_ParseTuple(
+	        args, "OO!:poly_3d_calc",
+	        &veclist,
+	        &vector_Type, &point))
 	{
 		return NULL;
 	}
@@ -81,13 +82,13 @@ static PyObject *M_Interpolate_poly_3d_calc(PyObject *UNUSED(self), PyObject *ar
 	else
 		fp[2] = 0.0f;  /* if its a 2d vector then set the z to be zero */
 	
-	len = mathutils_array_parse_alloc_v(((float **)&vecs), 3, veclist, "interpolation_weights");
+	len = mathutils_array_parse_alloc_v(((float **)&vecs), 3, veclist, __func__);
 	if (len == -1) {
 		return NULL;
 	}
 	
 	if (len) {
-		float *weights = MEM_mallocN(sizeof(float) * len, "interpolation weights");
+		float *weights = MEM_mallocN(sizeof(float) * len, __func__);
 		
 		interp_weights_poly_v3(weights, vecs, len, fp);




More information about the Bf-blender-cvs mailing list