diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-18 09:41:37 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-18 09:50:18 +0300 |
commit | b749e43cd3e2a76a58f3fb7b47959b684061ea9b (patch) | |
tree | a76ade362ffaa3bbb2342ed3c0fa31761363fb32 /source/blender/editors/interface/interface_intern.h | |
parent | 8f5ba8e1a1df2e496bbf24573a68cffe564e24db (diff) |
Fix color ramp eyedropper menu item
This couldn't be accessed because the poll function was checking the
active button.
Add a "color_ramp" context pointer which is set by the menu.
Alternative fix to D3984
Diffstat (limited to 'source/blender/editors/interface/interface_intern.h')
-rw-r--r-- | source/blender/editors/interface/interface_intern.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_intern.h b/source/blender/editors/interface/interface_intern.h index b0eb63712e2..4b35978a9de 100644 --- a/source/blender/editors/interface/interface_intern.h +++ b/source/blender/editors/interface/interface_intern.h @@ -97,6 +97,8 @@ typedef enum { UI_WTYPE_PROGRESSBAR, } uiWidgetTypeEnum; +#define UI_MENU_PADDING (int)(0.2f * UI_UNIT_Y) + #define UI_MENU_WIDTH_MIN (UI_UNIT_Y * 9) /* some extra padding added to menus containing submenu icons */ #define UI_MENU_SUBMENU_PADDING (6 * UI_DPI_FAC) |