Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-03-17 01:39:56 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-17 01:39:56 +0400
commit70d3d1aca6612d8168d80ca72938dad06086003b (patch)
tree94c48e2f9beadc22df7b74a283ce37c6a33e9458 /source/blender/python/bmesh
parent56da174b14de74ebc141b0242e1eb7ccf8058353 (diff)
style cleanup: py/capi
Diffstat (limited to 'source/blender/python/bmesh')
-rw-r--r--source/blender/python/bmesh/bmesh_py_api.c4
-rw-r--r--source/blender/python/bmesh/bmesh_py_types.c10
-rw-r--r--source/blender/python/bmesh/bmesh_py_types_customdata.c2
3 files changed, 8 insertions, 8 deletions
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);