diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-04 09:54:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-04 09:54:40 +0300 |
commit | 7719c110064fc6f90c93c5339681b7dd9f5cbd63 (patch) | |
tree | 6939cd7d5eeeb083d9846ea1945a74dd4a4dc3cb /source/blender/python/mathutils | |
parent | 854db8951bc15a7545eea3ff2219a28897698ead (diff) |
Cleanup: strip trailing space in Python module
Diffstat (limited to 'source/blender/python/mathutils')
4 files changed, 11 insertions, 11 deletions
diff --git a/source/blender/python/mathutils/CMakeLists.txt b/source/blender/python/mathutils/CMakeLists.txt index f70f893aeac..adf7c85d7c9 100644 --- a/source/blender/python/mathutils/CMakeLists.txt +++ b/source/blender/python/mathutils/CMakeLists.txt @@ -18,7 +18,7 @@ # # ***** END GPL LICENSE BLOCK ***** -set(INC +set(INC . ../../blenlib ../../blenkernel diff --git a/source/blender/python/mathutils/mathutils_Matrix.h b/source/blender/python/mathutils/mathutils_Matrix.h index d2fbe6a04d5..f7c8d7eebeb 100644 --- a/source/blender/python/mathutils/mathutils_Matrix.h +++ b/source/blender/python/mathutils/mathutils_Matrix.h @@ -1,4 +1,4 @@ -/* +/* * ***** BEGIN GPL LICENSE BLOCK ***** * * This program is free software; you can redistribute it and/or diff --git a/source/blender/python/mathutils/mathutils_interpolate.c b/source/blender/python/mathutils/mathutils_interpolate.c index c8cb71874db..720fac7c276 100644 --- a/source/blender/python/mathutils/mathutils_interpolate.c +++ b/source/blender/python/mathutils/mathutils_interpolate.c @@ -60,10 +60,10 @@ static PyObject *M_Interpolate_poly_3d_calc(PyObject *UNUSED(self), PyObject *ar float fp[3]; float (*vecs)[3]; Py_ssize_t len; - + PyObject *point, *veclist, *ret; int i; - + if (!PyArg_ParseTuple( args, "OO!:poly_3d_calc", &veclist, @@ -71,27 +71,27 @@ static PyObject *M_Interpolate_poly_3d_calc(PyObject *UNUSED(self), PyObject *ar { return NULL; } - + 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) fp[2] = ((VectorObject *)point)->vec[2]; 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, __func__); if (len == -1) { return NULL; } - + if (len) { float *weights = MEM_mallocN(sizeof(float) * len, __func__); - + interp_weights_poly_v3(weights, vecs, len, fp); - + ret = PyList_New(len); for (i = 0; i < len; i++) { PyList_SET_ITEM(ret, i, PyFloat_FromDouble(weights[i])); diff --git a/source/blender/python/mathutils/mathutils_noise.c b/source/blender/python/mathutils/mathutils_noise.c index 88c89b90dc8..839d1ffc588 100644 --- a/source/blender/python/mathutils/mathutils_noise.c +++ b/source/blender/python/mathutils/mathutils_noise.c @@ -671,7 +671,7 @@ static PyObject *M_Noise_hybrid_multi_fractal(PyObject *UNUSED(self), PyObject * if (mathutils_array_parse(vec, 3, 3, value, "hybrid_multi_fractal: invalid 'position' arg") == -1) return NULL; - + return PyFloat_FromDouble(mg_HybridMultiFractal(vec[0], vec[1], vec[2], H, lac, oct, ofs, gn, nb)); } |