From 70d3d1aca6612d8168d80ca72938dad06086003b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 16 Mar 2012 21:39:56 +0000 Subject: style cleanup: py/capi --- source/blender/python/bmesh/bmesh_py_api.c | 4 ++-- source/blender/python/bmesh/bmesh_py_types.c | 10 +++++----- source/blender/python/bmesh/bmesh_py_types_customdata.c | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'source/blender/python/bmesh') diff --git a/source/blender/python/bmesh/bmesh_py_api.c b/source/blender/python/bmesh/bmesh_py_api.c index d9ca997bbd5..9ef6929a8d5 100644 --- a/source/blender/python/bmesh/bmesh_py_api.c +++ b/source/blender/python/bmesh/bmesh_py_api.c @@ -137,11 +137,11 @@ PyObject *BPyInit_bmesh(void) mod = PyModule_Create(&BPy_BM_module_def); /* bmesh.types */ - PyModule_AddObject(mod, "types", (submodule=BPyInit_bmesh_types())); + PyModule_AddObject(mod, "types", (submodule = BPyInit_bmesh_types())); PyDict_SetItemString(sys_modules, "bmesh.types", submodule); Py_INCREF(submodule); - PyModule_AddObject(mod, "utils", (submodule=BPyInit_bmesh_utils())); + PyModule_AddObject(mod, "utils", (submodule = BPyInit_bmesh_utils())); PyDict_SetItemString(sys_modules, "bmesh.utils", submodule); Py_INCREF(submodule); diff --git a/source/blender/python/bmesh/bmesh_py_types.c b/source/blender/python/bmesh/bmesh_py_types.c index 8b3a32ea923..2628625ea7e 100644 --- a/source/blender/python/bmesh/bmesh_py_types.c +++ b/source/blender/python/bmesh/bmesh_py_types.c @@ -721,8 +721,8 @@ PyDoc_STRVAR(bpy_bmesh_to_mesh_doc, ); static PyObject *bpy_bmesh_to_mesh(BPy_BMesh *self, PyObject *args) { - PyObject *py_mesh; - Mesh *me; + PyObject *py_mesh; + Mesh *me; BMesh *bm; BPY_BM_CHECK_OBJ(self); @@ -764,8 +764,8 @@ PyDoc_STRVAR(bpy_bmesh_from_object_doc, ); static PyObject *bpy_bmesh_from_object(BPy_BMesh *self, PyObject *args) { - PyObject *py_object; - Object *ob; + PyObject *py_object; + Object *ob; BMesh *bm; int apply_modifiers = TRUE; DerivedMesh *dm; @@ -1659,7 +1659,7 @@ static PyObject *bpy_bmfaceseq_new(BPy_BMElemSeq *self, PyObject *args) edge_array = (BMEdge **)PyMem_MALLOC(vert_seq_len * sizeof(BMEdge **)); /* ensure edges */ - for (i = vert_seq_len - 1, i_next = 0; i_next < vert_seq_len; (i=i_next++)) { + for (i = vert_seq_len - 1, i_next = 0; i_next < vert_seq_len; (i = i_next++)) { edge_array[i] = BM_edge_create(bm, vert_array[i], vert_array[i_next], NULL, TRUE); } diff --git a/source/blender/python/bmesh/bmesh_py_types_customdata.c b/source/blender/python/bmesh/bmesh_py_types_customdata.c index a44cc78088d..01a91d1cafc 100644 --- a/source/blender/python/bmesh/bmesh_py_types_customdata.c +++ b/source/blender/python/bmesh/bmesh_py_types_customdata.c @@ -244,7 +244,7 @@ PyDoc_STRVAR(bpy_bmlayercollection_get_doc, static PyObject *bpy_bmlayercollection_get(BPy_BMLayerCollection *self, PyObject *args) { const char *key; - PyObject* def = Py_None; + PyObject *def = Py_None; BPY_BM_CHECK_OBJ(self); -- cgit v1.2.3