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_mesh_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_mesh_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_mesh_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_mesh_types.h b/source/blender/makesdna/DNA_mesh_types.h index 15b95104359..0d43b14e252 100644 --- a/source/blender/makesdna/DNA_mesh_types.h +++ b/source/blender/makesdna/DNA_mesh_types.h @@ -189,6 +189,7 @@ typedef struct Mesh { /** Deprecated multiresolution modeling data, only keep for loading old files. */ struct Multires *mr DNA_DEPRECATED; + void *_pad1; Mesh_Runtime runtime; } Mesh; |