Cleanup: add trailing commas
Prevents clang-format merging into a single line.
This commit is contained in:
@@ -403,7 +403,7 @@ static PySequenceMethods Color_SeqMethods = {
|
||||
static PyMappingMethods Color_AsMapping = {
|
||||
(lenfunc)Color_len,
|
||||
(binaryfunc)Color_subscript,
|
||||
(objobjargproc)Color_ass_subscript
|
||||
(objobjargproc)Color_ass_subscript,
|
||||
};
|
||||
|
||||
/* numeric */
|
||||
|
@@ -602,7 +602,7 @@ static PySequenceMethods Euler_SeqMethods = {
|
||||
static PyMappingMethods Euler_AsMapping = {
|
||||
(lenfunc)Euler_len,
|
||||
(binaryfunc)Euler_subscript,
|
||||
(objobjargproc)Euler_ass_subscript
|
||||
(objobjargproc)Euler_ass_subscript,
|
||||
};
|
||||
|
||||
/* euler axis, euler.x/y/z */
|
||||
|
@@ -158,7 +158,7 @@ Mathutils_Callback mathutils_matrix_row_cb = {
|
||||
mathutils_matrix_row_get,
|
||||
mathutils_matrix_row_set,
|
||||
mathutils_matrix_row_get_index,
|
||||
mathutils_matrix_row_set_index
|
||||
mathutils_matrix_row_set_index,
|
||||
};
|
||||
|
||||
|
||||
@@ -250,7 +250,7 @@ Mathutils_Callback mathutils_matrix_col_cb = {
|
||||
mathutils_matrix_col_get,
|
||||
mathutils_matrix_col_set,
|
||||
mathutils_matrix_col_get_index,
|
||||
mathutils_matrix_col_set_index
|
||||
mathutils_matrix_col_set_index,
|
||||
};
|
||||
|
||||
|
||||
@@ -327,7 +327,7 @@ Mathutils_Callback mathutils_matrix_translation_cb = {
|
||||
mathutils_matrix_translation_get,
|
||||
mathutils_matrix_translation_set,
|
||||
mathutils_matrix_translation_get_index,
|
||||
mathutils_matrix_translation_set_index
|
||||
mathutils_matrix_translation_set_index,
|
||||
};
|
||||
|
||||
|
||||
@@ -2652,7 +2652,7 @@ static int Matrix_ass_subscript(MatrixObject *self, PyObject *item, PyObject *va
|
||||
static PyMappingMethods Matrix_AsMapping = {
|
||||
(lenfunc)Matrix_len,
|
||||
(binaryfunc)Matrix_subscript,
|
||||
(objobjargproc)Matrix_ass_subscript
|
||||
(objobjargproc)Matrix_ass_subscript,
|
||||
};
|
||||
|
||||
|
||||
@@ -3314,7 +3314,7 @@ static PyObject *MatrixAccess_iter(MatrixAccessObject *self)
|
||||
static PyMappingMethods MatrixAccess_AsMapping = {
|
||||
(lenfunc)MatrixAccess_len,
|
||||
(binaryfunc)MatrixAccess_subscript,
|
||||
(objobjargproc) MatrixAccess_ass_subscript
|
||||
(objobjargproc) MatrixAccess_ass_subscript,
|
||||
};
|
||||
|
||||
PyTypeObject matrix_access_Type = {
|
||||
|
@@ -1036,7 +1036,7 @@ static PySequenceMethods Quaternion_SeqMethods = {
|
||||
static PyMappingMethods Quaternion_AsMapping = {
|
||||
(lenfunc)Quaternion_len,
|
||||
(binaryfunc)Quaternion_subscript,
|
||||
(objobjargproc)Quaternion_ass_subscript
|
||||
(objobjargproc)Quaternion_ass_subscript,
|
||||
};
|
||||
|
||||
static PyNumberMethods Quaternion_NumMethods = {
|
||||
|
@@ -2170,7 +2170,7 @@ static int Vector_ass_subscript(VectorObject *self, PyObject *item, PyObject *va
|
||||
static PyMappingMethods Vector_AsMapping = {
|
||||
(lenfunc)Vector_len,
|
||||
(binaryfunc)Vector_subscript,
|
||||
(objobjargproc)Vector_ass_subscript
|
||||
(objobjargproc)Vector_ass_subscript,
|
||||
};
|
||||
|
||||
|
||||
@@ -3064,7 +3064,7 @@ PyTypeObject vector_Type = {
|
||||
NULL, /* PyObject *tp_cache; */
|
||||
NULL, /* PyObject *tp_subclasses; */
|
||||
NULL, /* PyObject *tp_weaklist; */
|
||||
NULL
|
||||
NULL,
|
||||
};
|
||||
|
||||
PyObject *Vector_CreatePyObject(
|
||||
|
@@ -115,7 +115,7 @@ static PyMethodDef M_Interpolate_methods[] = {
|
||||
#ifndef MATH_STANDALONE
|
||||
{"poly_3d_calc", (PyCFunction) M_Interpolate_poly_3d_calc, METH_VARARGS, M_Interpolate_poly_3d_calc_doc},
|
||||
#endif
|
||||
{NULL, NULL, 0, NULL}
|
||||
{NULL, NULL, 0, NULL},
|
||||
};
|
||||
|
||||
static struct PyModuleDef M_Interpolate_module_def = {
|
||||
|
@@ -398,7 +398,7 @@ static PyMethodDef PyKDTree_methods[] = {
|
||||
{"find", (PyCFunction)py_kdtree_find, METH_VARARGS | METH_KEYWORDS, py_kdtree_find_doc},
|
||||
{"find_n", (PyCFunction)py_kdtree_find_n, METH_VARARGS | METH_KEYWORDS, py_kdtree_find_n_doc},
|
||||
{"find_range", (PyCFunction)py_kdtree_find_range, METH_VARARGS | METH_KEYWORDS, py_kdtree_find_range_doc},
|
||||
{NULL, NULL, 0, NULL}
|
||||
{NULL, NULL, 0, NULL},
|
||||
};
|
||||
|
||||
PyDoc_STRVAR(py_KDtree_doc,
|
||||
|
@@ -216,7 +216,7 @@ static PyC_FlagSet bpy_noise_types[] = {
|
||||
{TEX_VORONOI_F2F1, "VORONOI_F2F1"},
|
||||
{TEX_VORONOI_CRACKLE, "VORONOI_CRACKLE"},
|
||||
{TEX_CELLNOISE, "CELLNOISE"},
|
||||
{0, NULL}
|
||||
{0, NULL},
|
||||
};
|
||||
|
||||
/* Metric basis enum */
|
||||
@@ -230,7 +230,7 @@ static PyC_FlagSet bpy_noise_metrics[] = {
|
||||
{TEX_MINKOVSKY, "MINKOVSKY"},
|
||||
{TEX_MINKOVSKY_HALF, "MINKOVSKY_HALF"},
|
||||
{TEX_MINKOVSKY_FOUR, "MINKOVSKY_FOUR"},
|
||||
{0, NULL}
|
||||
{0, NULL},
|
||||
};
|
||||
|
||||
/* Fills an array of length size with random numbers in the range (-1, 1)*/
|
||||
@@ -1044,7 +1044,7 @@ static PyMethodDef M_Noise_methods[] = {
|
||||
{"voronoi", (PyCFunction) M_Noise_voronoi, METH_VARARGS | METH_KEYWORDS, M_Noise_voronoi_doc},
|
||||
{"cell", (PyCFunction) M_Noise_cell, METH_VARARGS, M_Noise_cell_doc},
|
||||
{"cell_vector", (PyCFunction) M_Noise_cell_vector, METH_VARARGS, M_Noise_cell_vector_doc},
|
||||
{NULL, NULL, 0, NULL}
|
||||
{NULL, NULL, 0, NULL},
|
||||
};
|
||||
|
||||
static struct PyModuleDef M_Noise_module_def = {
|
||||
|
Reference in New Issue
Block a user