Blender Git Loki

Git Commits -> Revision ff998e1

Revision ff998e1 by Sergey Sharybin (master)
June 21, 2012, 10:52 (GMT)
Fixes for 8vytes scalar types used in DNA (int64 and double)

- makesdna wasn't checking whether such scalars are aligned to 8 bytes.
Now it should be handled correct.
- Some scalars in Object structure weren't 8 bytes aligned, which lead
to some incorrectly loaded files.

Fixed by adding void *pad. It's a bit tricky part of patch, but can't
see clearer way to make alignment correct

Usually ints/chars were used for padding, but in this case there are
some leading pointer properties before int64 properties and using
pointer as a padding resolves alignment on both 32 and 64 bit
platforms.

Using pointers as padding weren't needed before, because all types
were correctly aligned independent of whether pointers are 4 or 8
bytes.

This fixes #31774: Empty offset Y parameter is resetting

Commit Details:

Full Hash: ff998e15a75a1f38db1e3fc91f7f0ef6664e4e45
SVN Revision: 48157
Parent Commit: c250ab8
Lines Changed: +6, -1

2 Modified Paths:

/source/blender/makesdna/DNA_object_types.h (+1, -0) (Diff)
/source/blender/makesdna/intern/makesdna.c (+5, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021