From 4f4cea727efdeaf388de7ce84a6a6c399050c590 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 2 Apr 2019 15:56:16 +0200 Subject: 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. --- source/blender/makesdna/DNA_gpencil_types.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/makesdna/DNA_gpencil_types.h') 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]; -- cgit v1.2.3