DNA: support structs with a size of 1 or 2 bytes.

Before the smallest possible dna struct size was 4 bytes.

Differential Revision: https://developer.blender.org/D10287
This commit is contained in:
Jacques Lucke 2021-02-05 16:24:29 +01:00
parent e8a5744cda
commit a0867f05a4
1 changed files with 1 additions and 1 deletions

View File

@ -1074,7 +1074,7 @@ static int calculate_struct_sizes(int firststruct, FILE *file_verify, const char
}
}
if (size_native % 4) {
if (size_native % 4 && !ELEM(size_native, 1, 2)) {
fprintf(stderr,
"Sizeerror 4 in struct: %s (add %d bytes)\n",
types[structtype],