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/include/UI_interface.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/include/UI_interface.h')
-rw-r--r-- | source/blender/editors/include/UI_interface.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index ec8c2e0d299..7d28c538780 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -1186,6 +1186,8 @@ void uiTemplateComponentMenu(uiLayout *layout, struct PointerRNA *ptr, const cha void uiTemplateNodeSocket(uiLayout *layout, struct bContext *C, float *color); void uiTemplateCacheFile(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname); +struct ColorBand *UI_block_get_colorband_from_template_menu(struct uiBlock *block); + /* Default UIList class name, keep in sync with its declaration in bl_ui/__init__.py */ #define UI_UL_DEFAULT_CLASS_NAME "UI_UL_list" void uiTemplateList( |