From 5a43406e1bad973a8cb32702b4fdb588068a6dcd Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 7 Jan 2019 22:19:13 +1100 Subject: Cleanup: move DNA comments before struct members Needed for clang-format in some cases, see: T53211 --- source/blender/makesdna/DNA_meshdata_types.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'source/blender/makesdna/DNA_meshdata_types.h') diff --git a/source/blender/makesdna/DNA_meshdata_types.h b/source/blender/makesdna/DNA_meshdata_types.h index 8525f9d0334..f2d25506505 100644 --- a/source/blender/makesdna/DNA_meshdata_types.h +++ b/source/blender/makesdna/DNA_meshdata_types.h @@ -41,7 +41,8 @@ struct Image; typedef struct MFace { unsigned int v1, v2, v3, v4; short mat_nr; - char edcode, flag; /* we keep edcode, for conversion to edges draw flags in old files */ + /** We keep edcode, for conversion to edges draw flags in old files. */ + char edcode, flag; } MFace; typedef struct MEdge { @@ -58,7 +59,8 @@ typedef struct MDeformWeight { typedef struct MDeformVert { struct MDeformWeight *dw; int totweight; - int flag; /* flag only in use for weightpaint now */ + /** Flag only in use for weightpaint now. */ + int flag; } MDeformVert; typedef struct MVert { @@ -78,15 +80,18 @@ typedef struct MCol { typedef struct MPoly { /* offset into loop array and number of loops in the face */ int loopstart; - int totloop; /* keep signed since we need to subtract when getting the previous loop */ + /** Keep signed since we need to subtract when getting the previous loop. */ + int totloop; short mat_nr; char flag, pad; } MPoly; /* the e here is because we want to move away from relying on edge hashes.*/ typedef struct MLoop { - unsigned int v; /* vertex index */ - unsigned int e; /* edge index */ + /** Vertex index. */ + unsigned int v; + /** Edge index. */ + unsigned int e; } MLoop; /** @@ -237,7 +242,8 @@ typedef struct MLoopCol { typedef struct MSelect { int index; - int type; /* ME_VSEL/ME_ESEL/ME_FSEL */ + /** ME_VSEL/ME_ESEL/ME_FSEL. */ + int type; } MSelect; /*tessellation uv face data*/ -- cgit v1.2.3