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:
authorTon Roosendaal <ton@blender.org>2004-10-30 16:06:22 +0400
committerTon Roosendaal <ton@blender.org>2004-10-30 16:06:22 +0400
commit02b2fc5ec8029994efcd5c04e261db64464f5b08 (patch)
tree8c53d99b4a28a599493691e790532e033af351bc /source/blender/makesdna/intern/makesdna.c
parentc47029a710d522c4157e277d9cef8f72aca0ba6b (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.c6
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;
+ }
+
}
}
}