diff options
author | Ton Roosendaal <ton@blender.org> | 2004-10-30 16:06:22 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-10-30 16:06:22 +0400 |
commit | 02b2fc5ec8029994efcd5c04e261db64464f5b08 (patch) | |
tree | 8c53d99b4a28a599493691e790532e033af351bc /source/blender/makesdna/intern/makesdna.c | |
parent | c47029a710d522c4157e277d9cef8f72aca0ba6b (diff) |
Added warning in makesdna to check for total struct sizes.
Found error in wipe struct, which was even constructed terrible weird :)
Diffstat (limited to 'source/blender/makesdna/intern/makesdna.c')
-rw-r--r-- | source/blender/makesdna/intern/makesdna.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c index fab4f72a1ad..213ad3f9213 100644 --- a/source/blender/makesdna/intern/makesdna.c +++ b/source/blender/makesdna/intern/makesdna.c @@ -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; + } + } } } |