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:
authorDaniel Dunbar <daniel@zuster.org>2005-03-12 00:15:20 +0300
committerDaniel Dunbar <daniel@zuster.org>2005-03-12 00:15:20 +0300
commit18c01053cbc30d2b652e09af653a31e7301cd24c (patch)
tree3be9d774e654a50fed71fa6e2059489223e8cf1a /source/blender/makesdna/intern/makesdna.c
parenta1919e6db4e20f1ab16646d3cbb273f569af23e1 (diff)
- dna_error wasn't set on two errors in makesdna, allowed bad compilation
Diffstat (limited to 'source/blender/makesdna/intern/makesdna.c')
-rw-r--r--source/blender/makesdna/intern/makesdna.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c
index 213ad3f9213..eec499862b7 100644
--- a/source/blender/makesdna/intern/makesdna.c
+++ b/source/blender/makesdna/intern/makesdna.c
@@ -719,9 +719,11 @@ int calculate_structlens(void)
/* 2-4 aligned/ */
if(typelens[type]>3 && (len % 4) ) {
printf("Align 4 error in struct: %s %s\n", types[structtype], cp);
+ dna_error = 1;
}
else if(typelens[type]==2 && (len % 2) ) {
printf("Align 2 error in struct: %s %s\n", types[structtype], cp);
+ dna_error = 1;
}
len += mul*typelens[type];