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_mask_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_mask_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_mask_types.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/makesdna/DNA_mask_types.h b/source/blender/makesdna/DNA_mask_types.h index d52c94d87f0..58418738f3a 100644 --- a/source/blender/makesdna/DNA_mask_types.h +++ b/source/blender/makesdna/DNA_mask_types.h @@ -47,7 +47,7 @@ typedef struct Mask { /** For anim info. */ int flag; - int pad; + char _pad[4]; } Mask; typedef struct MaskParent { @@ -92,7 +92,7 @@ typedef struct MaskSplinePointUW { typedef struct MaskSplinePoint { /** Actual point coordinates and it's handles . */ BezTriple bezt; - int pad; + char _pad[4]; /** Number of uv feather values. */ int tot_uw; /** Feather UV values. */ @@ -134,7 +134,7 @@ typedef struct MaskLayerShape { int frame; /** Animation flag. */ char flag; - char pad[7]; + char _pad[7]; } MaskLayerShape; /* cast to this for convenience, not saved */ @@ -166,7 +166,7 @@ typedef struct MaskLayer { char blend; char blend_flag; char falloff; - char pad[7]; + char _pad[7]; /** For animation. */ char flag; |