makesdna: Fix build error on win32.
authorRay Molenkamp <github@lazydodo.com>
Fri, 17 May 2019 00:03:20 +0000 (18:03 -0600)
committerRay Molenkamp <github@lazydodo.com>
Fri, 17 May 2019 00:03:20 +0000 (18:03 -0600)
Win32 has some special struct alignment rules that makesdna
is not warning about. See

https://developer.blender.org/T63164#652815

for details.

source/blender/makesdna/DNA_object_types.h

index 0b2f3d6..4287017 100644 (file)
@@ -170,6 +170,8 @@ typedef struct Object_Runtime {
 
   /** Runtime grease pencil drawing data */
   struct GpencilBatchCache *gpencil_cache;
+
+  void *_pad2; /* Padding is here for win32s unconventional stuct alignment rules. */
 } Object_Runtime;
 
 typedef struct Object {