UI: small fix for forward compatibility, keep this style setting so opening
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 24 Nov 2011 19:38:20 +0000 (19:38 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 24 Nov 2011 19:38:20 +0000 (19:38 +0000)
in older blender versions show correct panel header spacing still.

source/blender/editors/interface/interface_style.c
source/blender/makesdna/DNA_userdef_types.h

index 3caafe308d05f4703dbd2be09ced5a9a614a6fdb..0e9dbaf3022d3286df2706bed7079ec9d20012d1 100644 (file)
@@ -124,6 +124,7 @@ static uiStyle *ui_style_new(ListBase *styles, const char *name, short uifont_id
        style->buttonspacex= 8;
        style->buttonspacey= 2;
        style->panelspace= 8;
+       style->panelouter= 4;
        
        return style;
 }
index 322e8a7756585b8c0f887517fd25063233f8ae89..6c359f2c040e1fa003b2378bad05b34a5b744ca9 100644 (file)
@@ -112,8 +112,9 @@ typedef struct uiStyle {
        short buttonspacex;
        short buttonspacey;
        short panelspace;
+       short panelouter;
 
-       short pad[2];
+       short pad;
 } uiStyle;
 
 typedef struct uiWidgetColors {