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:
-rw-r--r--source/blender/makesdna/intern/makesdna.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c
index eec499862b7..fc95c1277d5 100644
--- a/source/blender/makesdna/intern/makesdna.c
+++ b/source/blender/makesdna/intern/makesdna.c
@@ -718,11 +718,12 @@ 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);
+ printf("Align 4 error in struct: %s %s (add %d padding bytes)\n", types[structtype], cp, len%4);
+ printf(" \n", len%4);
dna_error = 1;
}
else if(typelens[type]==2 && (len % 2) ) {
- printf("Align 2 error in struct: %s %s\n", types[structtype], cp);
+ printf("Align 2 error in struct: %s %s (add %d padding bytes)\n", types[structtype], cp, len%2);
dna_error = 1;
}