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_linestyle_types.h | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'source/blender/makesdna/DNA_linestyle_types.h') diff --git a/source/blender/makesdna/DNA_linestyle_types.h b/source/blender/makesdna/DNA_linestyle_types.h index fa9ce358549..914bab3d017 100644 --- a/source/blender/makesdna/DNA_linestyle_types.h +++ b/source/blender/makesdna/DNA_linestyle_types.h @@ -52,7 +52,8 @@ struct bNodeTree; typedef struct LineStyleModifier { struct LineStyleModifier *next, *prev; - char name[64]; /* MAX_NAME */ + /** MAX_NAME. */ + char name[64]; int type; float influence; int flags; @@ -383,7 +384,8 @@ typedef struct LineStyleGeometryModifier_PerlinNoise1D { struct LineStyleModifier modifier; float frequency, amplitude; - float angle; /* in radians! */ + /** In radians!. */ + float angle; unsigned int octaves; int seed; int pad1; @@ -393,7 +395,8 @@ typedef struct LineStyleGeometryModifier_PerlinNoise2D { struct LineStyleModifier modifier; float frequency, amplitude; - float angle; /* in radians! */ + /** In radians!. */ + float angle; unsigned int octaves; int seed; int pad1; @@ -462,7 +465,8 @@ typedef struct LineStyleGeometryModifier_2DTransform { int pivot; float scale_x, scale_y; - float angle; /* in radians! */ + /** In radians!. */ + float angle; float pivot_u; float pivot_x, pivot_y; int pad; @@ -481,7 +485,8 @@ typedef struct LineStyleThicknessModifier_Calligraphy { struct LineStyleModifier modifier; float min_thickness, max_thickness; - float orientation; /* in radians! */ + /** In radians!. */ + float orientation; int pad; } LineStyleThicknessModifier_Calligraphy; @@ -551,7 +556,8 @@ typedef struct FreestyleLineStyle { int chaining; unsigned int rounds; float split_length; - float min_angle, max_angle; /* in radians, for splitting */ + /** In radians, for splitting. */ + float min_angle, max_angle; float min_length, max_length; unsigned int chain_count; unsigned short split_dash1, split_gap1; @@ -562,8 +568,10 @@ typedef struct FreestyleLineStyle { short texact, pr_texture; short use_nodes, pad[3]; unsigned short dash1, gap1, dash2, gap2, dash3, gap3; - int panel; /* for UI */ - struct MTex *mtex[18]; /* MAX_MTEX */ + /** For UI. */ + int panel; + /** MAX_MTEX. */ + struct MTex *mtex[18]; /* nodes */ struct bNodeTree *nodetree; -- cgit v1.2.3