Cleanup: rename 'rt' to '_pad#' in DNA structs

This commit is contained in:
Campbell Barton 2021-05-12 16:44:59 +10:00
parent 193425ce1d
commit 0d21228dce
8 changed files with 28 additions and 17 deletions

View File

@ -97,7 +97,8 @@ typedef struct BoidRuleFollowLeader {
} BoidRuleFollowLeader;
typedef struct BoidRuleAverageSpeed {
BoidRule rule;
float wander, level, speed, rt;
float wander, level, speed;
char _pad0[4];
} BoidRuleAverageSpeed;
typedef struct BoidRuleFight {
BoidRule rule;
@ -178,7 +179,7 @@ typedef struct BoidState {
//} BoidSignal;
// typedef struct BoidSignalDefine {
// struct BoidSignalDefine *next, *prev;
// int id, rt;
// int id, _pad[4];
// char name[32];
//} BoidSignalDefine;

View File

@ -71,13 +71,15 @@ extern "C" {
typedef struct Effect {
struct Effect *next, *prev;
short type, flag, buttype, rt;
short type, flag, buttype;
char _pad0[2];
} Effect;
typedef struct BuildEff {
struct BuildEff *next, *prev;
short type, flag, buttype, rt;
short type, flag, buttype;
char _pad0[2];
float len, sfra;
@ -88,7 +90,8 @@ typedef struct BuildEff {
typedef struct Particle {
float co[3], no[3];
float time, lifetime;
short mat_nr, rt;
short mat_nr;
char _pad0[2];
} Particle;
struct Collection;

View File

@ -77,8 +77,9 @@ typedef struct IpoCurve {
short totvert;
/** Interpolation and extrapolation modes . */
short ipo, extrap;
/** Flag= settings; rt= ???. */
short flag, rt;
/** Flag= settings. */
short flag;
char _pad0[2];
/** Minimum/maximum y-extents for curve. */
float ymin, ymax;
/** ???. */

View File

@ -182,8 +182,8 @@ typedef struct EffectorWeights {
/** Effector type specific weights. */
float weight[14];
float global_gravity;
short flag, rt[3];
char _pad[4];
short flag;
char _pad[2];
} EffectorWeights;
/* EffectorWeights->flag */

View File

@ -64,7 +64,7 @@ typedef struct BoidParticle {
struct BoidData data;
float gravity[3];
float wander[3];
float rt;
char _pad0[4];
} BoidParticle;
typedef struct ParticleSpring {
@ -82,7 +82,7 @@ typedef struct ChildParticle {
float w[4];
/** Face vertex weights and offset. */
float fuv[4], foffset;
float rt;
char _pad0[4];
} ChildParticle;
typedef struct ParticleTarget {
@ -99,7 +99,8 @@ typedef struct ParticleDupliWeight {
short count;
short flag;
/** Only updated on file save and used on file load. */
short index, rt;
short index;
char _pad0[2];
} ParticleDupliWeight;
typedef struct ParticleData {
@ -191,7 +192,8 @@ typedef struct ParticleSettings {
struct EffectorWeights *effector_weights;
struct Collection *collision_group;
int flag, rt;
int flag;
char _pad1[4];
short type, from, distr, texact;
/* physics modes */
short phystype, rotmode, avemode, reactevent;

View File

@ -107,7 +107,8 @@ typedef struct PointCache {
int totpoint;
/** Modifier stack index. */
int index;
short compression, rt;
short compression;
char _pad0[2];
char name[64];
char prev_name[64];

View File

@ -952,7 +952,8 @@ typedef struct ParticleEditSettings {
/** Runtime. */
void *paintcursor;
float emitterdist, rt;
float emitterdist;
char _pad0[4];
int selectmode;
int edittype;
@ -1550,7 +1551,8 @@ typedef struct UnitSettings {
typedef struct PhysicsSettings {
float gravity[3];
int flag, quick_cache_step, rt;
int flag, quick_cache_step;
char _pad0[4];
} PhysicsSettings;
/* ------------------------------------------- */

View File

@ -57,7 +57,8 @@ typedef struct MTex {
short colormodel, pmapto, pmaptoneg;
short normapspace, which_output;
float r, g, b, k;
float def_var, rt;
float def_var;
char _pad1[4];
/* common */
float colfac, varfac;