diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-04-02 16:56:16 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-04-02 17:00:52 +0300 |
commit | 4f4cea727efdeaf388de7ce84a6a6c399050c590 (patch) | |
tree | 005f1e06f339a9c27f9e568906812304a5af679e /source/blender/makesdna/DNA_gpencil_types.h | |
parent | b0037cd0b4a76596ddfa34b21c1618f68cbb79bd (diff) |
Fix T63164: DNA size mismatches on 32bit, causing memory corruption and crashes.
Some alignment rules from Visual Studion on 32 bit are not taken into
account, this fixes the structs to confirm. We now have static asserts
to catch when such breakage happens in the future.
Diffstat (limited to 'source/blender/makesdna/DNA_gpencil_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_gpencil_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_gpencil_types.h b/source/blender/makesdna/DNA_gpencil_types.h index bd17d4e57dc..56e17fe9149 100644 --- a/source/blender/makesdna/DNA_gpencil_types.h +++ b/source/blender/makesdna/DNA_gpencil_types.h @@ -201,6 +201,7 @@ typedef struct bGPDstroke { /** Vertex weight data. */ struct MDeformVert *dvert; + void *_pad3; bGPDstroke_Runtime runtime; char _pad2[4]; |