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>2019-01-07 14:19:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-07 16:43:00 +0300
commit5a43406e1bad973a8cb32702b4fdb588068a6dcd (patch)
treeb47ac75f429b586950dab5300669c373023efab8 /source/blender/makesdna/DNA_layer_types.h
parent0215caeac2ad013fa03e2799049f5358d951ebfa (diff)
Cleanup: move DNA comments before struct members
Needed for clang-format in some cases, see: T53211
Diffstat (limited to 'source/blender/makesdna/DNA_layer_types.h')
-rw-r--r--source/blender/makesdna/DNA_layer_types.h36
1 files changed, 24 insertions, 12 deletions
diff --git a/source/blender/makesdna/DNA_layer_types.h b/source/blender/makesdna/DNA_layer_types.h
index d959d54b07f..c2d334e3e92 100644
--- a/source/blender/makesdna/DNA_layer_types.h
+++ b/source/blender/makesdna/DNA_layer_types.h
@@ -58,34 +58,42 @@ typedef struct LayerCollection {
short flag;
short runtime_flag;
short pad[2];
- ListBase layer_collections; /* synced with collection->children */
+ /** Synced with collection->children. */
+ ListBase layer_collections;
} LayerCollection;
typedef struct ViewLayer {
struct ViewLayer *next, *prev;
- char name[64]; /* MAX_NAME */
+ /** MAX_NAME. */
+ char name[64];
short flag;
short runtime_flag;
short pad[2];
- ListBase object_bases; /* ObjectBase */
- struct SceneStats *stats; /* default allocated now */
+ /** ObjectBase. */
+ ListBase object_bases;
+ /** Default allocated now. */
+ struct SceneStats *stats;
struct Base *basact;
- ListBase layer_collections; /* LayerCollection */
+ /** LayerCollection. */
+ ListBase layer_collections;
LayerCollection *active_collection;
/* Old SceneRenderLayer data. */
int layflag;
- int passflag; /* pass_xor has to be after passflag */
+ /** Pass_xor has to be after passflag. */
+ int passflag;
float pass_alpha_threshold;
int samples;
struct Material *mat_override;
- struct IDProperty *id_properties; /* Equivalent to datablocks ID properties. */
+ /** Equivalent to datablocks ID properties. */
+ struct IDProperty *id_properties;
struct FreestyleConfig freestyle_config;
/* Runtime data */
- ListBase drawdata; /* ViewLayerEngineData */
+ /** ViewLayerEngineData. */
+ ListBase drawdata;
struct Base **object_bases_array;
struct GHash *object_bases_hash;
} ViewLayer;
@@ -148,13 +156,17 @@ enum {
typedef struct SceneCollection {
struct SceneCollection *next, *prev;
- char name[64]; /* MAX_NAME */
- int active_object_index; /* for UI */
+ /** MAX_NAME. */
+ char name[64];
+ /** For UI. */
+ int active_object_index;
short flag;
char type;
char pad;
- ListBase objects; /* (Object *)LinkData->data */
- ListBase scene_collections; /* nested collections */
+ /** (Object *)LinkData->data. */
+ ListBase objects;
+ /** Nested collections. */
+ ListBase scene_collections;
} SceneCollection;
#ifdef __cplusplus