diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-05-09 10:53:50 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-05-09 10:54:51 +0300 |
commit | a27772cd661839b0194acb782fdf8beab19b000d (patch) | |
tree | 224b1926ffd39acc8e63b4c5d6295f0f9724322c /source/blender/makesdna/DNA_gpencil_types.h | |
parent | 3ce31633796cd1139cff96eaa4697d6d6f8ba10e (diff) |
Fix makesdna not checking alignment for a non-native platform
This was causing alignment issues which were only visible on a platform
of particular bitness, so it was easy to break stuff for 32bit when
working on 64bit platform and vice versa.
Diffstat (limited to 'source/blender/makesdna/DNA_gpencil_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_gpencil_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_gpencil_types.h b/source/blender/makesdna/DNA_gpencil_types.h index 43d42012b2c..41f53f9f51c 100644 --- a/source/blender/makesdna/DNA_gpencil_types.h +++ b/source/blender/makesdna/DNA_gpencil_types.h @@ -80,7 +80,7 @@ typedef struct bGPDstroke { bGPDtriangle *triangles;/* tesselated triangles for GP Fill */ int tot_triangles; /* number of triangles in array */ - short pad2[2]; /* avoid compiler align error */ + int pad1, *pad2; double inittime; /* Init time of stroke */ } bGPDstroke; |