Cleanup: add trailing commas
authorCampbell Barton <ideasman42@gmail.com>
Sat, 19 Jan 2019 02:21:18 +0000 (13:21 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 19 Jan 2019 02:58:35 +0000 (13:58 +1100)
Prevents clang-format merging into a single line.

40 files changed:
intern/cycles/blender/blender_python.cpp
source/blender/blenkernel/intern/boids.c
source/blender/blenkernel/intern/context.c
source/blender/blenkernel/intern/idprop.c
source/blender/blenkernel/intern/pointcache.c
source/blender/blenlib/intern/math_interp.c
source/blender/bmesh/operators/bmo_primitive.c
source/blender/draw/engines/eevee/eevee_lut.h
source/blender/editors/sound/sound_ops.c
source/blender/editors/space_buttons/buttons_context.c
source/blender/editors/space_view3d/space_view3d.c
source/blender/imbuf/intern/cineon/logImageCore.h
source/blender/imbuf/intern/util.c
source/blender/makesrna/intern/rna_access.c
source/blender/makesrna/intern/rna_nodetree.c
source/blender/modifiers/intern/MOD_smoke.c
source/blender/nodes/composite/nodes/node_composite_doubleEdgeMask.c
source/blender/python/bmesh/bmesh_py_ops.c
source/blender/python/bmesh/bmesh_py_types_meshdata.c
source/blender/python/generic/bgl.c
source/blender/python/generic/idprop_py_api.c
source/blender/python/intern/bpy_app_icons.c
source/blender/python/intern/bpy_app_ocio.c
source/blender/python/intern/bpy_app_translations.c
source/blender/python/intern/bpy_library_load.c
source/blender/python/intern/bpy_msgbus.c
source/blender/python/intern/bpy_operator.c
source/blender/python/intern/bpy_props.c
source/blender/python/intern/bpy_rna.c
source/blender/python/intern/bpy_utils_previews.c
source/blender/python/intern/bpy_utils_units.c
source/blender/python/mathutils/mathutils_Color.c
source/blender/python/mathutils/mathutils_Euler.c
source/blender/python/mathutils/mathutils_Matrix.c
source/blender/python/mathutils/mathutils_Quaternion.c
source/blender/python/mathutils/mathutils_Vector.c
source/blender/python/mathutils/mathutils_interpolate.c
source/blender/python/mathutils/mathutils_kdtree.c
source/blender/python/mathutils/mathutils_noise.c
source/blender/windowmanager/intern/wm_operators.c

index 69f2f9b853f2695ffdd26bf5da0f8f5b04894d80..bf5c2432bc79da007824ea6edd820f1f6757e1a7 100644 (file)
@@ -801,7 +801,7 @@ static struct PyModuleDef module = {
        "Blender cycles render integration",
        -1,
        methods,
-       NULL, NULL, NULL, NULL
+       NULL, NULL, NULL, NULL,
 };
 
 CCL_NAMESPACE_END
index ea62748806c94752b05ad7cb439a4d45c30668e3..343237fc631d375aa7fa2b486a521207e5c747e7 100644 (file)
@@ -743,7 +743,7 @@ static boid_rule_cb boid_rules[] = {
        //rule_protect,
        //rule_hide,
        //rule_follow_path,
-       //rule_follow_wall
+       //rule_follow_wall,
 };
 
 static void set_boid_values(BoidValues *val, BoidSettings *boids, ParticleData *pa)
index 1fb8af59c55e20bfe88d9d8f46152529aa11e11f..cff1d1a8947e04faabf4d086496bcb9ad2120280 100644 (file)
@@ -1045,7 +1045,7 @@ static const char *data_mode_strings[] = {
        "greasepencil_edit",
        "greasepencil_sculpt",
        "greasepencil_weight",
-       NULL
+       NULL,
 };
 BLI_STATIC_ASSERT(ARRAY_SIZE(data_mode_strings) == CTX_MODE_NUM + 1, "Must have a string for each context mode")
 const char *CTX_data_mode_string(const bContext *C)
index 5ea9f9b20f9948da2e4afb104d9d7ea70b5e0105..4d6c43c34e046b0f64a8a8d37ac87f127f315455 100644 (file)
@@ -62,7 +62,7 @@ static size_t idp_size_table[] = {
        0, /*arrays don't have a fixed size*/
        sizeof(ListBase), /*Group type*/
        sizeof(void *),
-       sizeof(double)
+       sizeof(double),
 };
 
 
index 9f9f47031231896cd3317b39df94ed4551c39f07..3bf8d5aaa1eea12e6840fd8bc82866037695e5ba 100644 (file)
@@ -137,7 +137,7 @@ static int ptcache_data_size[] = {
 
 static int ptcache_extra_datasize[] = {
        0,
-       sizeof(ParticleSpring)
+       sizeof(ParticleSpring),
 };
 
 /* forward declarations */
index a432cfad1fc4fccb73f9baa51f571332adcbba5e..27b26ede7934a2b586e67ee7696e57ce94d558e9 100644 (file)
@@ -455,7 +455,7 @@ const float EWA_WTS[EWA_MAXIDX + 1] = {
        0.0415211f, 0.039974f, 0.0384389f, 0.0369158f, 0.0354046f, 0.0339052f, 0.0324175f, 0.0309415f,
        0.029477f, 0.0280239f, 0.0265822f, 0.0251517f, 0.0237324f, 0.0223242f, 0.020927f, 0.0195408f,
        0.0181653f, 0.0168006f, 0.0154466f, 0.0141031f, 0.0127701f, 0.0114476f, 0.0101354f, 0.00883339f,
-       0.00754159f, 0.00625989f, 0.00498819f, 0.00372644f, 0.00247454f, 0.00123242f, 0.f
+       0.00754159f, 0.00625989f, 0.00498819f, 0.00372644f, 0.00247454f, 0.00123242f, 0.f,
 };
 
 static void radangle2imp(float a2, float b2, float th, float *A, float *B, float *C, float *F)
index b4f41790a81cfd97313ca713ef2fb3d389f8e1ad..5809b54321016012c1ad85a8286f599e4aa803bd 100644 (file)
@@ -744,7 +744,7 @@ static const float monkeyuvs[] =
        0.620420f, 0.565675f, 0.671403f, 0.592656f, 0.484068f, 0.628776f, 0.498072f, 0.552315f,
        0.276936f, 0.625067f, 0.092820f, 0.589862f, 0.145041f, 0.562595f, 0.264218f, 0.550140f,
        0.391039f, 0.611891f, 0.498072f, 0.552315f, 0.484068f, 0.628776f, 0.434803f, 0.658882f,
-       0.276936f, 0.625067f, 0.264218f, 0.550140f, 0.369913f, 0.610196f, 0.325318f, 0.656224f
+       0.276936f, 0.625067f, 0.264218f, 0.550140f, 0.369913f, 0.610196f, 0.325318f, 0.656224f,
 };
 
 #define VERT_MARK   1
index da765b3e53a1874f47b49269ce9c18504703a5d5..626f653ea40b857e78bb898129bffa5116fa88d8 100644 (file)
@@ -3342,7 +3342,7 @@ static float bsdf_split_sum_ggx[64 * 64 * 2] = {
        0.731445f, 0.049774f, 0.725586f, 0.046661f, 0.718262f, 0.043732f, 0.710449f, 0.041077f,
        0.702637f, 0.038544f, 0.694336f, 0.036163f, 0.685547f, 0.033966f, 0.676758f, 0.031921f,
        0.667480f, 0.030014f, 0.657715f, 0.028229f, 0.647461f, 0.026566f, 0.637207f, 0.025009f,
-       0.626953f, 0.023544f, 0.616699f, 0.022186f, 0.605957f, 0.020920f, 0.594727f, 0.019730f
+       0.626953f, 0.023544f, 0.616699f, 0.022186f, 0.605957f, 0.020920f, 0.594727f, 0.019730f,
 };
 
 static float ltc_disk_integral[64 * 64] = {
@@ -3857,7 +3857,7 @@ static float ltc_disk_integral[64 * 64] = {
        0.507937f, 0.523810f, 0.539683f, 0.555556f, 0.571429f, 0.587302f, 0.603175f, 0.619048f,
        0.634921f, 0.650794f, 0.666667f, 0.682540f, 0.698413f, 0.714286f, 0.730159f, 0.746032f,
        0.761905f, 0.777778f, 0.793651f, 0.809524f, 0.825397f, 0.841270f, 0.857143f, 0.873016f,
-       0.888889f, 0.904762f, 0.920635f, 0.936508f, 0.952381f, 0.968254f, 0.984127f, 1.000000f
+       0.888889f, 0.904762f, 0.920635f, 0.936508f, 0.952381f, 0.968254f, 0.984127f, 1.000000f,
 };
 
 static float btdf_split_sum_ggx[32][64 * 64] = {
index 558cab760e0cf89d746e330a722c5890edd3252c..335f84bfde9f754c194643133012ec618cb3b46c 100644 (file)
@@ -420,7 +420,7 @@ static const char *snd_ext_sound[] = {
        ".mp3",
        ".ogg",
        ".wav",
-       NULL
+       NULL,
 };
 
 static bool sound_mixdown_check(bContext *UNUSED(C), wmOperator *op)
index 041b7277c8c953d470c322686a5cd0887858da94..72457ce079c54ec616c08a5f83a185fbb740b503 100644 (file)
@@ -711,7 +711,7 @@ const char *buttons_context_dir[] = {
        "texture", "texture_user", "texture_user_property", "bone", "edit_bone",
        "pose_bone", "particle_system", "particle_system_editable", "particle_settings",
        "cloth", "soft_body", "fluid", "smoke", "collision", "brush", "dynamic_paint",
-       "line_style", "collection", NULL
+       "line_style", "collection", NULL,
 };
 
 int buttons_context(const bContext *C, const char *member, bContextDataResult *result)
index 7b3d1ac607211d7972a03e84cb769fd7b1536307..9ad35fe9fc6b9283e135002ca96ae0f5a80aa963 100644 (file)
@@ -1364,7 +1364,7 @@ static void space_view3d_refresh(const bContext *C, ScrArea *UNUSED(sa))
 }
 
 const char *view3d_context_dir[] = {
-       "active_base", "active_object", NULL
+       "active_base", "active_object", NULL,
 };
 
 static int view3d_context(const bContext *C, const char *member, bContextDataResult *result)
index b6f4fff73f6c301addfd6e88a6aaf802646d04f8..f696d1b44d8fd2ba2f54fd59f45df1c658e4fdbe 100644 (file)
@@ -49,7 +49,7 @@ extern "C" {
 /* There are some differences between DPX and Cineon so we need to know from what type of file the datas come from */
 enum format {
        format_DPX,
-       format_Cineon
+       format_Cineon,
 };
 
 typedef struct LogImageElement {
@@ -125,7 +125,7 @@ enum transfer {
        transfer_NTSC,
        transfer_PAL,
        transfer_ZLinear,
-       transfer_Homogeneous
+       transfer_Homogeneous,
 };
 
 /* The SMPTE defines this code:
@@ -179,7 +179,7 @@ enum descriptor {
        descriptor_UserDefined7Elt,
        descriptor_UserDefined8Elt,
        /* following descriptors are for internal use only */
-       descriptor_YA
+       descriptor_YA,
 };
 
 /* int functions return 0 for OK */
index 6a095b2da1fac1c240f564ddd1fa9611661ea892..38591adbaa25d24c8cd7edd039ef0c192b1eb0c4 100644 (file)
@@ -92,14 +92,14 @@ const char *imb_ext_image[] = {
 #ifdef WITH_OPENIMAGEIO
        ".psd", ".pdd", ".psb",
 #endif
-       NULL
+       NULL,
 };
 
 const char *imb_ext_image_filepath_only[] = {
 #ifdef WITH_OPENIMAGEIO
        ".psd", ".pdd", ".psb",
 #endif
-       NULL
+       NULL,
 };
 
 const char *imb_ext_movie[] = {
@@ -131,7 +131,7 @@ const char *imb_ext_movie[] = {
        ".xvid",
        ".mxf",
        ".webm",
-       NULL
+       NULL,
 };
 
 /* sort of wrong being here... */
@@ -150,7 +150,7 @@ const char *imb_ext_audio[] = {
        ".aiff",
        ".m4a",
        ".mka",
-       NULL
+       NULL,
 };
 
 int IMB_ispic_type(const char *name)
index b1f9cfc2bc9f25ae801dc7b1c82c27151873350c..c159d4d9daae1b8deeb7281543350fe795431e9c 100644 (file)
@@ -523,7 +523,7 @@ static PropertyRNA *typemap[IDP_NUMTYPES] = {
        (PropertyRNA *)&rna_PropertyGroupItem_group,
        (PropertyRNA *)&rna_PropertyGroupItem_id,
        (PropertyRNA *)&rna_PropertyGroupItem_double,
-       (PropertyRNA *)&rna_PropertyGroupItem_idp_array
+       (PropertyRNA *)&rna_PropertyGroupItem_idp_array,
 };
 
 static PropertyRNA *arraytypemap[IDP_NUMTYPES] = {
@@ -531,7 +531,7 @@ static PropertyRNA *arraytypemap[IDP_NUMTYPES] = {
        (PropertyRNA *)&rna_PropertyGroupItem_float_array,
        NULL, NULL, NULL,
        (PropertyRNA *)&rna_PropertyGroupItem_collection, NULL,
-       (PropertyRNA *)&rna_PropertyGroupItem_double_array
+       (PropertyRNA *)&rna_PropertyGroupItem_double_array,
 };
 
 static void *rna_idproperty_check_ex(PropertyRNA **prop, PointerRNA *ptr, const bool return_rnaprop)
index 6dd243087c470974f32a33c623023f2ce37b904b..422ef9d61e8a549e3563c56d66daa18598e83e92 100644 (file)
@@ -3314,26 +3314,26 @@ static const EnumPropertyItem node_glass_items[] = {
        {SHD_GLOSSY_BECKMANN,          "BECKMANN",          0, "Beckmann", ""},
        {SHD_GLOSSY_GGX,               "GGX",               0, "GGX",      ""},
        {SHD_GLOSSY_MULTI_GGX,         "MULTI_GGX",         0, "Multiscatter GGX", ""},
-       {0, NULL, 0, NULL, NULL}
+       {0, NULL, 0, NULL, NULL},
 };
 
 static const EnumPropertyItem node_refraction_items[] = {
        {SHD_GLOSSY_SHARP,             "SHARP",             0, "Sharp",    ""},
        {SHD_GLOSSY_BECKMANN,          "BECKMANN",          0, "Beckmann", ""},
        {SHD_GLOSSY_GGX,               "GGX",               0, "GGX",      ""},
-       {0, NULL, 0, NULL, NULL}
+       {0, NULL, 0, NULL, NULL},
 };
 
 static const EnumPropertyItem node_toon_items[] = {
        {SHD_TOON_DIFFUSE,    "DIFFUSE",  0, "Diffuse", ""},
        {SHD_TOON_GLOSSY,     "GLOSSY",   0, "Glossy",  ""},
-       {0, NULL, 0, NULL, NULL}
+       {0, NULL, 0, NULL, NULL},
 };
 
 static const EnumPropertyItem node_hair_items[] = {
        {SHD_HAIR_REFLECTION,     "Reflection",    0,   "Reflection", ""},
        {SHD_HAIR_TRANSMISSION,   "Transmission",    0,  "Transmission", ""},
-       {0, NULL, 0, NULL, NULL}
+       {0, NULL, 0, NULL, NULL},
 };
 
 static const EnumPropertyItem node_principled_hair_items[] = {
index d0db852550b08fcf12039dfd70c5ac1979b92253..8fac27272b098a90856be4d76257a933f3bb76f9 100644 (file)
@@ -201,5 +201,5 @@ ModifierTypeInfo modifierType_Smoke = {
        /* dependsOnNormals */  NULL,
        /* foreachObjectLink */ NULL,
        /* foreachIDLink */     foreachIDLink,
-       /* foreachTexLink */    NULL
+       /* foreachTexLink */    NULL,
 };
index 699dfce22432d6b5750b8c4ab873c697fb5785b3..0a145ff3ba9da6d33c64c1354caf7bc6ce7321d5 100644 (file)
@@ -35,7 +35,7 @@
 static bNodeSocketTemplate cmp_node_doubleedgemask_in[] = {
        { SOCK_FLOAT, 1, "Inner Mask", 0.8f, 0.8f, 0.8f, 1.0f, 0.0f, 1.0f, PROP_NONE},  // inner mask socket definition
        { SOCK_FLOAT, 1, "Outer Mask", 0.8f, 0.8f, 0.8f, 1.0f, 0.0f, 1.0f, PROP_NONE},  // outer mask socket definition
-       { -1, 0, ""     }                                                                                                                                       // input socket array terminator
+       { -1, 0, ""     },                                                                                                                                      // input socket array terminator
 };
 static bNodeSocketTemplate cmp_node_doubleedgemask_out[] = {
        { SOCK_FLOAT, 0, "Mask"},               // output socket definition
index 49e71da3bc326b6e5a44c6620a7c2f6fd9cf1707..3a4437b2be6ff29168a84189bd390670eea79702 100644 (file)
@@ -232,7 +232,7 @@ static PyTypeObject bmesh_op_Type = {
        NULL,                       /* PyObject *tp_cache; */
        NULL,                       /* PyObject *tp_subclasses; */
        NULL,                       /* PyObject *tp_weaklist; */
-       NULL
+       NULL,
 };
 
 
@@ -350,7 +350,7 @@ static PyTypeObject bmesh_ops_fakemod_Type = {
        NULL,                       /* PyObject *tp_cache; */
        NULL,                       /* PyObject *tp_subclasses; */
        NULL,                       /* PyObject *tp_weaklist; */
-       NULL
+       NULL,
 };
 
 PyObject *BPyInit_bmesh_ops(void)
index 2a0f3817f3508458957cf185c390aca18beb4e57..45092e854eddac05aac6717a1f7f484097f7ded0 100644 (file)
@@ -334,7 +334,7 @@ static Mathutils_Callback mathutils_bmloopcol_cb = {
        mathutils_bmloopcol_get,
        mathutils_bmloopcol_set,
        mathutils_bmloopcol_get_index,
-       mathutils_bmloopcol_set_index
+       mathutils_bmloopcol_set_index,
 };
 
 static void bm_init_types_bmloopcol(void)
@@ -523,7 +523,7 @@ static PySequenceMethods bpy_bmdeformvert_as_sequence = {
 static PyMappingMethods bpy_bmdeformvert_as_mapping = {
        (lenfunc)bpy_bmdeformvert_len,
        (binaryfunc)bpy_bmdeformvert_subscript,
-       (objobjargproc)bpy_bmdeformvert_ass_subscript
+       (objobjargproc)bpy_bmdeformvert_ass_subscript,
 };
 
 /* Methods
index 07c0f81b7cac9573ad72ea6bc1e9f7725cb5aa7e..ad30b5ceb2a4694d252f4fb0cf4b8e75011c1476 100644 (file)
@@ -533,7 +533,7 @@ static PySequenceMethods Buffer_SeqMethods = {
 static PyMappingMethods Buffer_AsMapping = {
        (lenfunc)Buffer_len,
        (binaryfunc)Buffer_subscript,
-       (objobjargproc)Buffer_ass_subscript
+       (objobjargproc)Buffer_ass_subscript,
 };
 
 static void Buffer_dealloc(Buffer *self);
index 072c11b14e50c1edae3f7575d4717c67a76b2c8a..d6e4a3ac2912880b8893287b981a59c9c0e58fb4 100644 (file)
@@ -1520,7 +1520,7 @@ static int BPy_IDArray_ass_subscript(BPy_IDArray *self, PyObject *item, PyObject
 static PyMappingMethods BPy_IDArray_AsMapping = {
        (lenfunc)BPy_IDArray_Len,
        (binaryfunc)BPy_IDArray_subscript,
-       (objobjargproc)BPy_IDArray_ass_subscript
+       (objobjargproc)BPy_IDArray_ass_subscript,
 };
 
 static int itemsize_by_idarray_type(int array_type)
@@ -1640,7 +1640,7 @@ PyTypeObject BPy_IDArray_Type = {
        NULL,                       /* PyObject *tp_cache; */
        NULL,                       /* PyObject *tp_subclasses; */
        NULL,                       /* PyObject *tp_weaklist; */
-       NULL
+       NULL,
 };
 
 /*********** ID Property Group iterator ********/
index 12315a6e11254174aeedf42722562e6c4aaa06da..075e2f57ec4cb4b5d03d8304aa18c1605a69add8 100644 (file)
@@ -160,7 +160,7 @@ static struct PyMethodDef M_AppIcons_methods[] = {
         METH_VARARGS | METH_KEYWORDS, bpy_app_icons_new_triangles_from_file_doc},
        {"release", (PyCFunction)bpy_app_icons_release,
         METH_VARARGS | METH_KEYWORDS, bpy_app_icons_release_doc},
-       {NULL, NULL, 0, NULL}
+       {NULL, NULL, 0, NULL},
 };
 
 static struct PyModuleDef M_AppIcons_module_def = {
index 9997e6b87f1cf16dc414de614eed1ccf78c899b9..546261f82fa5c52d021bf85897758e360f7d3afb 100644 (file)
@@ -41,7 +41,7 @@ static PyStructSequence_Field app_ocio_info_fields[] = {
        {(char *)"supported", (char *)("Boolean, True when Blender is built with OpenColorIO support")},
        {(char *)("version"), (char *)("The OpenColorIO version as a tuple of 3 numbers")},
        {(char *)("version_string"), (char *)("The OpenColorIO version formatted as a string")},
-       {NULL}
+       {NULL},
 };
 
 static PyStructSequence_Desc app_ocio_info_desc = {
index 2a5efc15b873b92526c31eccf10333188212d298..acb44f86f75dae66b5b3359a11571fd925e7ab0a 100644 (file)
@@ -782,7 +782,7 @@ static PyTypeObject BlenderAppTranslationsType = {
        NULL,                       /* PyObject *tp_cache; */
        NULL,                       /* PyObject *tp_subclasses; */
        NULL,                       /* PyObject *tp_weaklist; */
-       NULL
+       NULL,
 };
 
 PyObject *BPY_app_translations_struct(void)
index 5c64a65fb58ec3f0cbb98a25eee39a6975adf505..b44e269e2c32dd39ed00bdf375d218cff28ad964 100644 (file)
@@ -167,7 +167,7 @@ static PyTypeObject bpy_lib_Type = {
        NULL,                       /* PyObject *tp_cache; */
        NULL,                       /* PyObject *tp_subclasses; */
        NULL,                       /* PyObject *tp_weaklist; */
-       NULL
+       NULL,
 };
 
 PyDoc_STRVAR(bpy_lib_load_doc,
index 101cc8b41a367fd2d0a43636c52cff44ae76c728..a1713bd7aaed11fa14f31a4a70d7dd2b14109305 100644 (file)
@@ -377,7 +377,7 @@ static struct PyMethodDef BPy_msgbus_methods[] = {
        {"subscribe_rna", (PyCFunction)bpy_msgbus_subscribe_rna, METH_VARARGS | METH_KEYWORDS, bpy_msgbus_subscribe_rna_doc},
        {"publish_rna", (PyCFunction)bpy_msgbus_publish_rna, METH_VARARGS | METH_KEYWORDS, bpy_msgbus_publish_rna_doc},
        {"clear_by_owner", (PyCFunction)bpy_msgbus_clear_by_owner, METH_O, bpy_msgbus_clear_by_owner_doc},
-       {NULL, NULL, 0, NULL}
+       {NULL, NULL, 0, NULL},
 };
 
 static struct PyModuleDef _bpy_msgbus_def = {
index d3abaf43aef0a1cc31a215b808bd980dabf41cb8..56db0a604aa5c2832aa9b955c8764d75e3b8836a 100644 (file)
@@ -438,7 +438,7 @@ static struct PyModuleDef bpy_ops_module = {
        NULL,
        -1, /* multiple "initialization" just copies the module dict. */
        bpy_ops_methods,
-       NULL, NULL, NULL, NULL
+       NULL, NULL, NULL, NULL,
 };
 
 PyObject *BPY_operator_module(void)
index b7242680dcae82a23bfb86c3499b30d320dacca7..206929a4271e611d0c06576ff159b2ccdf4b6984 100644 (file)
@@ -3193,7 +3193,7 @@ static struct PyModuleDef props_module = {
        ".. note:: All parameters to these functions must be passed as keywords.\n",
        -1, /* multiple "initialization" just copies the module dict. */
        props_methods,
-       NULL, NULL, NULL, NULL
+       NULL, NULL, NULL, NULL,
 };
 
 PyObject *BPY_rna_props(void)
index f25f007033fba1daf33d4dc2c91b8a6aad0739d4..0b89a6eaa5546c18c972f331d34df69cdfb5276e 100644 (file)
@@ -513,7 +513,7 @@ static Mathutils_Callback mathutils_rna_array_cb = {
        (BaseMathGetFunc)       mathutils_rna_vector_get,
        (BaseMathSetFunc)       mathutils_rna_vector_set,
        (BaseMathGetIndexFunc)  mathutils_rna_vector_get_index,
-       (BaseMathSetIndexFunc)  mathutils_rna_vector_set_index
+       (BaseMathSetIndexFunc)  mathutils_rna_vector_set_index,
 };
 
 
@@ -569,7 +569,7 @@ static Mathutils_Callback mathutils_rna_matrix_cb = {
        mathutils_rna_matrix_get,
        mathutils_rna_matrix_set,
        NULL,
-       NULL
+       NULL,
 };
 
 static short pyrna_rotation_euler_order_get(
@@ -5277,7 +5277,7 @@ static struct PyMethodDef pyrna_prop_methods[] = {
 };
 
 static struct PyMethodDef pyrna_prop_array_methods[] = {
-       {NULL, NULL, 0, NULL}
+       {NULL, NULL, 0, NULL},
 };
 
 static struct PyMethodDef pyrna_prop_collection_methods[] = {
@@ -5977,7 +5977,7 @@ PyTypeObject pyrna_struct_meta_idprop_Type = {
        NULL,                       /* PyObject *tp_cache; */
        NULL,                       /* PyObject *tp_subclasses; */
        NULL,                       /* PyObject *tp_weaklist; */
-       NULL
+       NULL,
 };
 
 
@@ -6067,7 +6067,7 @@ PyTypeObject pyrna_struct_Type = {
        NULL,                       /* PyObject *tp_cache; */
        NULL,                       /* PyObject *tp_subclasses; */
        NULL,                       /* PyObject *tp_weaklist; */
-       NULL
+       NULL,
 };
 
 /*-----------------------BPy_PropertyRNA method def------------------------------*/
@@ -6152,7 +6152,7 @@ PyTypeObject pyrna_prop_Type = {
        NULL,                       /* PyObject *tp_cache; */
        NULL,                       /* PyObject *tp_subclasses; */
        NULL,                       /* PyObject *tp_weaklist; */
-       NULL
+       NULL,
 };
 
 PyTypeObject pyrna_prop_array_Type = {
@@ -6235,7 +6235,7 @@ PyTypeObject pyrna_prop_array_Type = {
        NULL,                       /* PyObject *tp_cache; */
        NULL,                       /* PyObject *tp_subclasses; */
        NULL,                       /* PyObject *tp_weaklist; */
-       NULL
+       NULL,
 };
 
 PyTypeObject pyrna_prop_collection_Type = {
@@ -6319,7 +6319,7 @@ PyTypeObject pyrna_prop_collection_Type = {
        NULL,                       /* PyObject *tp_cache; */
        NULL,                       /* PyObject *tp_subclasses; */
        NULL,                       /* PyObject *tp_weaklist; */
-       NULL
+       NULL,
 };
 
 /* only for add/remove/move methods */
@@ -6404,7 +6404,7 @@ static PyTypeObject pyrna_prop_collection_idprop_Type = {
        NULL,                       /* PyObject *tp_cache; */
        NULL,                       /* PyObject *tp_subclasses; */
        NULL,                       /* PyObject *tp_weaklist; */
-       NULL
+       NULL,
 };
 
 /*-----------------------BPy_PropertyRNA method def------------------------------*/
@@ -6489,7 +6489,7 @@ PyTypeObject pyrna_func_Type = {
        NULL,                       /* PyObject *tp_cache; */
        NULL,                       /* PyObject *tp_subclasses; */
        NULL,                       /* PyObject *tp_weaklist; */
-       NULL
+       NULL,
 };
 
 #ifdef USE_PYRNA_ITER
@@ -6592,7 +6592,7 @@ static PyTypeObject pyrna_prop_collection_iter_Type = {
        NULL,                       /* PyObject *tp_cache; */
        NULL,                       /* PyObject *tp_subclasses; */
        NULL,                       /* PyObject *tp_weaklist; */
-       NULL
+       NULL,
 };
 
 static PyObject *pyrna_prop_collection_iter_CreatePyObject(PointerRNA *ptr, PropertyRNA *prop)
@@ -8312,7 +8312,7 @@ PyDoc_STRVAR(pyrna_unregister_class_doc,
 "   before unregistering.\n"
 );
 PyMethodDef meth_bpy_unregister_class = {
-       "unregister_class", pyrna_unregister_class, METH_O, pyrna_unregister_class_doc
+       "unregister_class", pyrna_unregister_class, METH_O, pyrna_unregister_class_doc,
 };
 static PyObject *pyrna_unregister_class(PyObject *UNUSED(self), PyObject *py_class)
 {
index fed7c7210deb18f3df9b016cd57c8c716bd7bf35..4734da4b1be4d7eb45871538088d2d7f0724270b 100644 (file)
@@ -174,7 +174,7 @@ static struct PyModuleDef bpy_utils_previews_module = {
        bpy_utils_previews_doc,
        0,
        bpy_utils_previews_methods,
-       NULL, NULL, NULL, NULL
+       NULL, NULL, NULL, NULL,
 };
 
 
index 1d1108e1af0c45ae3b325451fe4177b217dd1d93..5a8b8606f7455b285bc26c59452ec43fc05156f3 100644 (file)
@@ -301,7 +301,7 @@ static PyObject *bpyunits_to_string(PyObject *UNUSED(self), PyObject *args, PyOb
 static PyMethodDef bpyunits_methods[] = {
        {"to_value", (PyCFunction)bpyunits_to_value, METH_VARARGS | METH_KEYWORDS, bpyunits_to_value_doc},
        {"to_string", (PyCFunction)bpyunits_to_string, METH_VARARGS | METH_KEYWORDS, bpyunits_to_string_doc},
-       {NULL, NULL, 0, NULL}
+       {NULL, NULL, 0, NULL},
 };
 
 PyDoc_STRVAR(bpyunits_doc,
@@ -314,7 +314,7 @@ static struct PyModuleDef bpyunits_module = {
        bpyunits_doc,
        -1, /* multiple "initialization" just copies the module dict. */
        bpyunits_methods,
-       NULL, NULL, NULL, NULL
+       NULL, NULL, NULL, NULL,
 };
 
 PyObject *BPY_utils_units(void)
index e97ed095b24458f64de7b0665a31681de58063be..be7889da0bdc29a62c5358df211b1c55de0b77c9 100644 (file)
@@ -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 */
index 9046bdc1aa41ee328fe8b4fecf2897850fe0c8d6..991314c23a41ec789da2747efa6cbb8da5441c7d 100644 (file)
@@ -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 */
index c033a990901befda3512fbc738824df6472d5868..04d4fb538951130c3d9f3bf739a868c7b27c9ed5 100644 (file)
@@ -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 = {
index a2b4480584a79dddf1b0534a05b928df392d415b..c892dce39e1f229641d4173dbf31aa251e0e1b93 100644 (file)
@@ -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 = {
index 16a242fc718cc872989b659c79cc7497be3ff795..77686f9904295699d11bdf3c92b3ebf77846e934 100644 (file)
@@ -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(
index 720fac7c276324e5f08f1e5b517d5def5e754d51..d2a09aaccb274bae0cfe03711d11a21d1244ca28 100644 (file)
@@ -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 = {
index ca66c1906b49ca5cb78c9d6fd968bdfeb3799cee..6405aee0496c658625f94d12ee7f3316ccf7a39d 100644 (file)
@@ -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,
index 5e3e86c8ddf3e7f95a8c3b272b5443871c814d41..fd41ff360cb8a2cea201eec2857144cef352bc09 100644 (file)
@@ -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 = {
index 60a26cc2f77afaca06c2863fb38018892bd741f5..23ce13722fb0716b22a7b976c15f51dd0eef84e2 100644 (file)
@@ -2797,7 +2797,7 @@ static const EnumPropertyItem redraw_timer_type_items[] = {
        {eRTAnimationStep, "ANIM_STEP", 0, "Anim Step", "Animation Steps"},
        {eRTAnimationPlay, "ANIM_PLAY", 0, "Anim Play", "Animation Playback"},
        {eRTUndo, "UNDO", 0, "Undo/Redo", "Undo/Redo"},
-       {0, NULL, 0, NULL, NULL}
+       {0, NULL, 0, NULL, NULL},
 };
 
 
@@ -3050,7 +3050,7 @@ static const EnumPropertyItem preview_id_type_items[] = {
 #if 0  /* XXX TODO */
     {FILTER_ID_BR, "BRUSH", 0, "Brushes", ""},
 #endif
-    {0, NULL, 0, NULL, NULL}
+    {0, NULL, 0, NULL, NULL},
 };
 
 static int previews_clear_exec(bContext *C, wmOperator *op)