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_world_types.h | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'source/blender/makesdna/DNA_world_types.h') diff --git a/source/blender/makesdna/DNA_world_types.h b/source/blender/makesdna/DNA_world_types.h index a3cc65d3c79..c95436f4723 100644 --- a/source/blender/makesdna/DNA_world_types.h +++ b/source/blender/makesdna/DNA_world_types.h @@ -50,8 +50,10 @@ struct MTex; * gravity, color model etc. It mixes rendering data and modeling data. */ typedef struct World { ID id; - struct AnimData *adt; /* animation data (must be immediately after id for utilities to use it) */ - DrawDataList drawdata; /* runtime (must be immediately after id for utilities to use it). */ + /** Animation data (must be immediately after id for utilities to use it). */ + struct AnimData *adt; + /* runtime (must be immediately after id for utilities to use it). */ + DrawDataList drawdata; char _pad0[4]; short texact, mistype; @@ -70,18 +72,19 @@ typedef struct World { * Some world modes * bit 0: Do mist */ - short mode; // partially moved to scene->gamedata in 2.5 + short mode; short pad2[3]; float misi, miststa, mistdist, misthi; - /* ambient occlusion */ + /** Ambient occlusion. */ float aodist, aoenergy; - /* assorted settings */ + /** Assorted settings. */ short flag, pad3[3]; - struct Ipo *ipo DNA_DEPRECATED; /* old animation system, deprecated for 2.5 */ + /** Old animation system, deprecated for 2.5. */ + struct Ipo *ipo DNA_DEPRECATED; short pr_texture, use_nodes, pad[2]; /* previews */ @@ -90,8 +93,10 @@ typedef struct World { /* nodes */ struct bNodeTree *nodetree; - float mistend, pad1; /* runtime : miststa + mistdist, used for drawing camera */ - ListBase gpumaterial; /* runtime */ + /** Runtime : miststa + mistdist, used for drawing camera. */ + float mistend, pad1; + /** Runtime. */ + ListBase gpumaterial; } World; /* **************** WORLD ********************* */ -- cgit v1.2.3