diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-29 22:12:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-29 23:14:28 +0300 |
commit | 25ec4b437fe927205a810470cdc23efd7282c85b (patch) | |
tree | 6d7ba2fe73703915b4b94d3f2dab03fb731e9544 /source/blender/python/mathutils/mathutils_interpolate.c | |
parent | 18d06e8d21ed8c9a19df4205abcd7ed17eb9af00 (diff) |
Cleanup: style, use braces for the Python API
Diffstat (limited to 'source/blender/python/mathutils/mathutils_interpolate.c')
-rw-r--r-- | source/blender/python/mathutils/mathutils_interpolate.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/python/mathutils/mathutils_interpolate.c b/source/blender/python/mathutils/mathutils_interpolate.c index da2ed0ced7e..792f8b1f065 100644 --- a/source/blender/python/mathutils/mathutils_interpolate.c +++ b/source/blender/python/mathutils/mathutils_interpolate.c @@ -66,15 +66,19 @@ static PyObject *M_Interpolate_poly_3d_calc(PyObject *UNUSED(self), PyObject *ar return NULL; } - if (BaseMath_ReadCallback((VectorObject *)point) == -1) + if (BaseMath_ReadCallback((VectorObject *)point) == -1) { return NULL; + } fp[0] = ((VectorObject *)point)->vec[0]; fp[1] = ((VectorObject *)point)->vec[1]; - if (((VectorObject *)point)->size > 2) + if (((VectorObject *)point)->size > 2) { fp[2] = ((VectorObject *)point)->vec[2]; - else - fp[2] = 0.0f; /* if its a 2d vector then set the z to be zero */ + } + else { + /* if its a 2d vector then set the z to be zero */ + fp[2] = 0.0f; + } len = mathutils_array_parse_alloc_v(((float **)&vecs), 3, veclist, __func__); if (len == -1) { |