diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-02-29 00:51:27 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-03-04 19:11:58 +0300 |
commit | c82e6fe80b1d62d04bd91d3a7ed8c46da40995ab (patch) | |
tree | 1c921d0df574006f85a530e3a0e930550bd3fb19 | |
parent | 50f188814fe324cd7837b52a528a0a7d58febdc7 (diff) |
PyAPI: correct function name w/ arg parsing
-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); |