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-02-27 07:07:50 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-02-27 07:09:48 +0300
commit6a03199b50e02d57a50eb24441ef7be0b7e965ac (patch)
treea5e5374cb81742d2c2df05ecf315afaafcaf3d0e /source/blender/makesdna/DNA_sequence_types.h
parentea69d9858058e027a8b49d0cf313c8d4abb777a4 (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_sequence_types.h')
-rw-r--r--source/blender/makesdna/DNA_sequence_types.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/makesdna/DNA_sequence_types.h b/source/blender/makesdna/DNA_sequence_types.h
index 3de9a4f7046..629bfffb696 100644
--- a/source/blender/makesdna/DNA_sequence_types.h
+++ b/source/blender/makesdna/DNA_sequence_types.h
@@ -71,7 +71,7 @@ typedef struct StripColorBalance {
float gamma[3];
float gain[3];
int flag;
- int pad;
+ char _pad[4];
// float exposure;
// float saturation;
} StripColorBalance;
@@ -92,7 +92,7 @@ typedef struct StripProxy {
// to build
short build_flags;
char storage;
- char pad[5];
+ char _pad[5];
} StripProxy;
typedef struct Strip {
@@ -220,7 +220,7 @@ typedef struct Sequence {
int sfra;
char alpha_mode;
- char pad[2];
+ char _pad[2];
/* Multiview */
char views_format;
@@ -294,7 +294,7 @@ typedef struct TransformVars {
typedef struct SolidColorVars {
float col[3];
- float pad;
+ char _pad[4];
} SolidColorVars;
typedef struct SpeedControlVars {
@@ -320,7 +320,7 @@ typedef struct TextVars {
float wrap_width;
char flag;
char align, align_y;
- char pad[1];
+ char _pad[1];
} TextVars;
/* TextVars.flag */
@@ -401,7 +401,7 @@ typedef struct WhiteBalanceModifierData {
SequenceModifierData modifier;
float white_value[3];
- float pad;
+ char _pad[4];
} WhiteBalanceModifierData;
typedef struct SequencerTonemapModifierData {