-> Fix for 64 bit alignment of Vertex colors in bmesh
authorGeoffrey Bantle <hairbat@yahoo.com>
Tue, 2 Sep 2008 16:39:03 +0000 (16:39 +0000)
committerGeoffrey Bantle <hairbat@yahoo.com>
Tue, 2 Sep 2008 16:39:03 +0000 (16:39 +0000)
Vertex color structure in bmesh needed to be padded for
8 byte aligned memory access.

source/blender/makesdna/DNA_meshdata_types.h

index 4e427ed733ce1dfb5682f3fcf33647f5ae627526..fc686a4cc10d1d7b5408c9d3826a170f87148b31 100644 (file)
@@ -82,6 +82,7 @@ typedef struct MLoopUV{
 
 typedef struct MLoopCol{
        char a, r, g, b;
+       int pad;  /*waste!*/
 }MLoopCol;
 
 typedef struct MSticky {