diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-02-29 00:51:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-02-29 01:00:21 +0300 |
commit | b285394acc26348b4086cf744f3959961c2d41cc (patch) | |
tree | 3eba13ca386ea11981809843425f9c9957d73e28 /source/blender/python/mathutils/mathutils_interpolate.c | |
parent | 0515703b15e11a3faba9650d12053b40d7db31c4 (diff) |
PyAPI: correct function name w/ arg parsing
Diffstat (limited to 'source/blender/python/mathutils/mathutils_interpolate.c')
-rw-r--r-- | source/blender/python/mathutils/mathutils_interpolate.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source/blender/python/mathutils/mathutils_interpolate.c b/source/blender/python/mathutils/mathutils_interpolate.c index 4d7841b906a..c8cb71874db 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); |