diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-27 07:07:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-27 07:09:48 +0300 |
commit | 6a03199b50e02d57a50eb24441ef7be0b7e965ac (patch) | |
tree | a5e5374cb81742d2c2df05ecf315afaafcaf3d0e /source/blender/makesdna/DNA_freestyle_types.h | |
parent | ea69d9858058e027a8b49d0cf313c8d4abb777a4 (diff) |
Cleanup: use '_pad' convention for padding in all DNA structs
Avoids mixing these in with regular variables in code-completion.
Use char for pad members except for 'void *', to make size clearer.
Removed/shrink a few redundant padding vars which were >= 8 bytes.
Diffstat (limited to 'source/blender/makesdna/DNA_freestyle_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_freestyle_types.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_freestyle_types.h b/source/blender/makesdna/DNA_freestyle_types.h index 6a8609fe57f..731bc590117 100644 --- a/source/blender/makesdna/DNA_freestyle_types.h +++ b/source/blender/makesdna/DNA_freestyle_types.h @@ -116,11 +116,11 @@ typedef struct FreestyleLineSet { int selection; /** Quantitative invisibility. */ short qi; - short pad1; + char _pad1[2]; int qi_start, qi_end; /** Feature edge types. */ int edge_types, exclude_edge_types; - int pad2; + char _pad2[4]; /** Group of target objects. */ struct Collection *group; @@ -132,7 +132,7 @@ typedef struct FreestyleModuleConfig { struct Text *script; short is_displayed; - short pad[3]; + char _pad[6]; } FreestyleModuleConfig; typedef struct FreestyleConfig { |