svn merge -r 12294:12347 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender.git] / source / blender / makesdna / intern / makesdna.c
index d13b964622dde3bbe1155f679723fc27ffd0b7eb..41a8e8127f0d3ecc6cac5457ca9b67097e9cd5bd 100644 (file)
@@ -715,8 +715,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/ */