diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-04-01 03:15:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-04-01 03:18:26 +0300 |
commit | d5c6485372f5f01a3505dc331ebdab03cde353d0 (patch) | |
tree | 41add9049ee49a2ebb4ca256fb10897adadb7947 /source/blender/python/bmesh | |
parent | 93972c8910081821d0c8361ba2a05c8af819b54d (diff) |
Cleanup: clang format
Diffstat (limited to 'source/blender/python/bmesh')
5 files changed, 36 insertions, 18 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_types.h b/source/blender/python/bmesh/bmesh_py_types.h index ce894760eff..ed307ce59a0 100644 --- a/source/blender/python/bmesh/bmesh_py_types.h +++ b/source/blender/python/bmesh/bmesh_py_types.h @@ -53,38 +53,45 @@ extern PyTypeObject BPy_BMIter_Type; /* cast from _any_ bmesh type - they all have BMesh first */ typedef struct BPy_BMGeneric { - PyObject_VAR_HEAD struct BMesh *bm; /* keep first */ + PyObject_VAR_HEAD + struct BMesh *bm; /* keep first */ } BPy_BMGeneric; /* BPy_BMVert/BPy_BMEdge/BPy_BMFace/BPy_BMLoop can cast to this */ typedef struct BPy_BMElem { - PyObject_VAR_HEAD struct BMesh *bm; /* keep first */ + PyObject_VAR_HEAD + struct BMesh *bm; /* keep first */ struct BMElem *ele; } BPy_BMElem; typedef struct BPy_BMesh { - PyObject_VAR_HEAD struct BMesh *bm; /* keep first */ + PyObject_VAR_HEAD + struct BMesh *bm; /* keep first */ int flag; } BPy_BMesh; /* element types */ typedef struct BPy_BMVert { - PyObject_VAR_HEAD struct BMesh *bm; /* keep first */ + PyObject_VAR_HEAD + struct BMesh *bm; /* keep first */ struct BMVert *v; } BPy_BMVert; typedef struct BPy_BMEdge { - PyObject_VAR_HEAD struct BMesh *bm; /* keep first */ + PyObject_VAR_HEAD + struct BMesh *bm; /* keep first */ struct BMEdge *e; } BPy_BMEdge; typedef struct BPy_BMFace { - PyObject_VAR_HEAD struct BMesh *bm; /* keep first */ + PyObject_VAR_HEAD + struct BMesh *bm; /* keep first */ struct BMFace *f; } BPy_BMFace; typedef struct BPy_BMLoop { - PyObject_VAR_HEAD struct BMesh *bm; /* keep first */ + PyObject_VAR_HEAD + struct BMesh *bm; /* keep first */ struct BMLoop *l; } BPy_BMLoop; @@ -98,7 +105,8 @@ typedef struct BPy_BMLoop { * - BPy_BMLoopSeq_Type */ typedef struct BPy_BMElemSeq { - PyObject_VAR_HEAD struct BMesh *bm; /* keep first */ + PyObject_VAR_HEAD + struct BMesh *bm; /* keep first */ /* if this is a sequence on an existing element, * loops of faces for eg. @@ -114,7 +122,8 @@ typedef struct BPy_BMElemSeq { } BPy_BMElemSeq; typedef struct BPy_BMIter { - PyObject_VAR_HEAD struct BMesh *bm; /* keep first */ + PyObject_VAR_HEAD + struct BMesh *bm; /* keep first */ BMIter iter; } BPy_BMIter; diff --git a/source/blender/python/bmesh/bmesh_py_types_customdata.h b/source/blender/python/bmesh/bmesh_py_types_customdata.h index 3173813a912..8552942f73a 100644 --- a/source/blender/python/bmesh/bmesh_py_types_customdata.h +++ b/source/blender/python/bmesh/bmesh_py_types_customdata.h @@ -38,20 +38,23 @@ extern PyTypeObject BPy_BMLayerItem_Type; /* all layers for vert/edge/face/loop */ typedef struct BPy_BMLayerAccess { - PyObject_VAR_HEAD struct BMesh *bm; /* keep first */ + PyObject_VAR_HEAD + struct BMesh *bm; /* keep first */ char htype; } BPy_BMLayerAccess; /* access different layer types deform/uv/vertexcolor */ typedef struct BPy_BMLayerCollection { - PyObject_VAR_HEAD struct BMesh *bm; /* keep first */ + PyObject_VAR_HEAD + struct BMesh *bm; /* keep first */ char htype; int type; /* customdata type - CD_XXX */ } BPy_BMLayerCollection; /* access a specific layer directly */ typedef struct BPy_BMLayerItem { - PyObject_VAR_HEAD struct BMesh *bm; /* keep first */ + PyObject_VAR_HEAD + struct BMesh *bm; /* keep first */ char htype; int type; /* customdata type - CD_XXX */ int index; /* index of this layer type */ diff --git a/source/blender/python/bmesh/bmesh_py_types_meshdata.c b/source/blender/python/bmesh/bmesh_py_types_meshdata.c index 127ce7db503..84267a83a44 100644 --- a/source/blender/python/bmesh/bmesh_py_types_meshdata.c +++ b/source/blender/python/bmesh/bmesh_py_types_meshdata.c @@ -48,7 +48,8 @@ #define BPy_BMLoopUV_Check(v) (Py_TYPE(v) == &BPy_BMLoopUV_Type) typedef struct BPy_BMLoopUV { - PyObject_VAR_HEAD MLoopUV *data; + PyObject_VAR_HEAD + MLoopUV *data; } BPy_BMLoopUV; PyDoc_STRVAR(bpy_bmloopuv_uv_doc, @@ -155,7 +156,8 @@ PyObject *BPy_BMLoopUV_CreatePyObject(struct MLoopUV *mloopuv) #define BPy_BMVertSkin_Check(v) (Py_TYPE(v) == &BPy_BMVertSkin_Type) typedef struct BPy_BMVertSkin { - PyObject_VAR_HEAD MVertSkin *data; + PyObject_VAR_HEAD + MVertSkin *data; } BPy_BMVertSkin; PyDoc_STRVAR(bpy_bmvertskin_radius_doc, @@ -392,7 +394,8 @@ PyObject *BPy_BMLoopColor_CreatePyObject(struct MLoopCol *mloopcol) #define BPy_BMDeformVert_Check(v) (Py_TYPE(v) == &BPy_BMDeformVert_Type) typedef struct BPy_BMDeformVert { - PyObject_VAR_HEAD MDeformVert *data; + PyObject_VAR_HEAD + MDeformVert *data; } BPy_BMDeformVert; /* Mapping Protocols diff --git a/source/blender/python/bmesh/bmesh_py_types_meshdata.h b/source/blender/python/bmesh/bmesh_py_types_meshdata.h index b7699b387e5..426bfcef6a0 100644 --- a/source/blender/python/bmesh/bmesh_py_types_meshdata.h +++ b/source/blender/python/bmesh/bmesh_py_types_meshdata.h @@ -29,7 +29,8 @@ extern PyTypeObject BPy_BMDeformVert_Type; #define BPy_BMLoopUV_Check(v) (Py_TYPE(v) == &BPy_BMLoopUV_Type) typedef struct BPy_BMGenericMeshData { - PyObject_VAR_HEAD void *data; + PyObject_VAR_HEAD + void *data; } BPy_BMGenericMeshData; struct MDeformVert; diff --git a/source/blender/python/bmesh/bmesh_py_types_select.h b/source/blender/python/bmesh/bmesh_py_types_select.h index c33aa3675c5..34ca162dd09 100644 --- a/source/blender/python/bmesh/bmesh_py_types_select.h +++ b/source/blender/python/bmesh/bmesh_py_types_select.h @@ -32,11 +32,13 @@ extern PyTypeObject BPy_BMEditSelIter_Type; #define BPy_BMSelectHistoryIter_Check(v) (Py_TYPE(v) == &BPy_BMEditSelIter_Type) typedef struct BPy_BMEditSelSeq { - PyObject_VAR_HEAD struct BMesh *bm; /* keep first */ + PyObject_VAR_HEAD + struct BMesh *bm; /* keep first */ } BPy_BMEditSelSeq; typedef struct BPy_BMEditSelIter { - PyObject_VAR_HEAD struct BMesh *bm; /* keep first */ + PyObject_VAR_HEAD + struct BMesh *bm; /* keep first */ struct BMEditSelection *ese; } BPy_BMEditSelIter; |