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:
parent
e8a5744cda
commit
a0867f05a4
|
@ -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],
|
||||
|
|
Loading…
Reference in New Issue