Change struct alignment for structs which are intended to be aligned but aren't.
[blender.git] / source / blender / windowmanager / WM_types.h
index cc3ae3ab753993840d6dcb47f6f1d71b884852d9..fec59e971947780eafe3aa5a04de4ac53d43a9d7 100644 (file)
@@ -464,8 +464,6 @@ typedef struct wmOperatorType {
        /* struct wmOperatorTypeMacro */
        ListBase macro;
 
-       short flag;
-
        /* pointer to modal keymap, do not free! */
        struct wmKeyMap *modalkeymap;
 
@@ -476,6 +474,10 @@ typedef struct wmOperatorType {
 
        /* RNA integration */
        ExtensionRNA ext;
+
+       /* Flag last for padding */
+       short flag;
+
 } wmOperatorType;
 
 /* **************** Paint Cursor ******************* */
@@ -540,11 +542,12 @@ typedef struct wmDropBox {
        
        /* if poll survives, operator is called */
        wmOperatorType *ot;                             /* not saved in file, so can be pointer */
-       short opcontext;                                /* default invoke */
-       
-       struct IDProperty *properties;                  /* operator properties, assigned to ptr->data and can be written to a file */
+
+       struct IDProperty *properties;  /* operator properties, assigned to ptr->data and can be written to a file */
        struct PointerRNA *ptr;                 /* rna pointer to access properties */
 
+       short opcontext;                                /* default invoke */
+
 } wmDropBox;
 
 /* *************** migrated stuff, clean later? ************** */