Makesdna: more verbose Align struct error #110291

Merged
Sybren A. Stüvel merged 1 commits from dr.sybren/blender:pr/makesdna-align-error into main 2023-07-21 12:24:42 +02:00

1 Commits

Author SHA1 Message Date
fe9f11c1d6 Makesdna: more verbose Align struct error
Change the error message from:

```
Align struct error: Bone color
```

to:

```
Align struct error: Bone::color (starts at 180 on the native platform;
 180 % 8 = 4 bytes)
```

The colon notation (`Bone::color`) makes it easier to recognise that this
is about a specific struct field. The rest of the explanation makes it
clear that this is about the start of the struct. It includes the math
the check is actually doing, providing concrete information on how to
change the code to fix the issue.
2023-07-20 12:04:10 +02:00