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_anim_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_anim_types.h')
-rw-r--r--source/blender/makesdna/DNA_anim_types.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/makesdna/DNA_anim_types.h b/source/blender/makesdna/DNA_anim_types.h
index a05b52d0f49..1ea4f15b8d5 100644
--- a/source/blender/makesdna/DNA_anim_types.h
+++ b/source/blender/makesdna/DNA_anim_types.h
@@ -247,7 +247,7 @@ typedef struct FMod_Limits {
rctf rect;
/** Settings for limiting. */
int flag;
- int pad;
+ char _pad[4];
} FMod_Limits;
/* limiting flags */
@@ -538,7 +538,7 @@ typedef struct FPoint {
float vec[2];
/** Selection info. */
int flag;
- int pad;
+ char _pad[4];
} FPoint;
/* 'Function-Curve' - defines values over time for a given setting (fcu) */
@@ -567,7 +567,7 @@ typedef struct FCurve {
/* value cache + settings */
/** Value stored from last time curve was evaluated (not threadsafe, debug display only!). */
float curval;
- char pad2[4];
+ char _pad2[4];
/** User-editable settings for this curve. */
short flag;
/** Value-extending mode for this curve (does not cover). */
@@ -575,7 +575,7 @@ typedef struct FCurve {
/** Auto-handle smoothing mode. */
char auto_smoothing;
- char pad[3];
+ char _pad[3];
/* RNA - data link */
/** If applicable, the index of the RNA-array item to get. */
@@ -707,7 +707,7 @@ typedef struct NlaStrip {
/** Strip extrapolation mode (time-based mixing). */
short extendmode;
- short pad1;
+ char _pad1[2];
/** Type of NLA strip. */
short type;
@@ -717,7 +717,7 @@ typedef struct NlaStrip {
/** Settings. */
int flag;
- int pad2;
+ char _pad2[4];
} NlaStrip;
/* NLA Strip Blending Mode */
@@ -812,7 +812,7 @@ typedef struct NlaTrack {
/** Settings for this track. */
int flag;
/** Index of the track in the stack
- * \note not really useful, but we need a pad var anyways! */
+ * \note not really useful, but we need a '_pad' var anyways! */
int index;
/** Short user-description of this track - MAX_ID_NAME-2. */
@@ -935,7 +935,7 @@ typedef struct KeyingSet {
/** (eInsertKeyFlags) for each flag set, the relevant keyingflag bit overrides the default. */
short keyingoverride;
- char pad[6];
+ char _pad[6];
} KeyingSet;
/* KeyingSet settings */
@@ -1050,7 +1050,7 @@ typedef struct AnimData {
/* settings for animation evaluation */
/** User-defined settings. */
int flag;
- int pad;
+ char _pad[4];
/* settings for active action evaluation (based on NLA strip settings) */
/** Accumulation mode for active action. */