forked from bartvdbraak/blender
Added warning in makesdna to check for total struct sizes.
Found error in wipe struct, which was even constructed terrible weird :)
This commit is contained in:
parent
c47029a710
commit
02b2fc5ec8
@ -141,10 +141,7 @@ typedef struct Editing {
|
||||
/* ************* Effect Variable Structs ********* */
|
||||
typedef struct WipeVars {
|
||||
float edgeWidth,angle;
|
||||
short forward,spad1,spad2,spad3;
|
||||
int ipad1;
|
||||
float fpad1,fpad2;
|
||||
short wipetype;
|
||||
short forward, wipetype;
|
||||
} WipeVars;
|
||||
|
||||
typedef struct GlowVars {
|
||||
|
@ -747,6 +747,12 @@ int calculate_structlens(void)
|
||||
dna_error = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if(len % 4) {
|
||||
printf("Sizeerror in struct: %s\n", types[structtype]);
|
||||
dna_error = 1;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user