Files
test2/source
Sybren A. Stüvel 4833dd931b Makesdna: more verbose Align struct error
Change the `makesdna` 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)
```

This has a few advantages:

- The colon notation (`Bone::color`) makes it easier to recognise that this is about a specific struct field.
- It makes it clear that this is about the start/offset of the inner struct.
- It includes the math the check is actually doing, providing concrete information on how to change the code to fix the issue.

Pull Request: https://projects.blender.org/blender/blender/pulls/110291
2023-07-21 12:24:35 +02:00
..