From b749e43cd3e2a76a58f3fb7b47959b684061ea9b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 18 Mar 2019 17:41:37 +1100 Subject: 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 --- source/blender/editors/interface/interface_intern.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/editors/interface/interface_intern.h') 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) -- cgit v1.2.3