diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-10-22 15:50:05 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-10-22 15:50:05 +0400 |
commit | 2dcc81071b47936bce2c888ae54bdd78abffab13 (patch) | |
tree | 18911eed9645c6fbaadda1fc044e8c7412f344a8 /source/blender | |
parent | e0668e9d2235b6b5ff837102c767d49c4b105fc9 (diff) |
dna error was not being set, allowing build to finish with DNA
allignment errors.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/makesdna/intern/makesdna.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c index 4d437861751..af41380d5f8 100644 --- a/source/blender/makesdna/intern/makesdna.c +++ b/source/blender/makesdna/intern/makesdna.c @@ -714,8 +714,10 @@ static int calculate_structlens(int firststruct) /* struct alignment */ if(type >= firststruct) { - if(sizeof(void *)==8 && (len % 8) ) + if(sizeof(void *)==8 && (len % 8) ) { printf("Align struct error: %s %s\n", types[structtype],cp); + dna_error = 1; + } } /* 2-4 aligned/ */ |