diff options
author | Nathan Craddock <nzcraddock@gmail.com> | 2020-09-15 16:40:38 +0300 |
---|---|---|
committer | Nathan Craddock <nzcraddock@gmail.com> | 2020-09-15 16:40:38 +0300 |
commit | 93b8040f57297133e7b90c8dfb05088490425cb2 (patch) | |
tree | 588f4095d1c3b04262351d8267dbc9a3de39dc4e /source/blender/editors/gpencil/gpencil_data.c | |
parent | e17df47303e1fc85276124d447d2ea405e1f0465 (diff) |
UI: Add `icon_only` argument to operator_enum
Add an option to only draw icons for operator_enum menus. This is used
for drawing inline icon buttons in the outliner context menu for
collection color tagging.
Part of T77408
Differential Revision: https://developer.blender.org/D8880
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_data.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_data.c b/source/blender/editors/gpencil/gpencil_data.c index 6c003b85edd..f97ee81132f 100644 --- a/source/blender/editors/gpencil/gpencil_data.c +++ b/source/blender/editors/gpencil/gpencil_data.c @@ -1403,7 +1403,7 @@ static int gpencil_layer_change_invoke(bContext *C, wmOperator *op, const wmEven /* call the menu, which will call this operator again, hence the canceled */ pup = UI_popup_menu_begin(C, op->type->name, ICON_NONE); layout = UI_popup_menu_layout(pup); - uiItemsEnumO(layout, "GPENCIL_OT_layer_change", "layer"); + uiItemsEnumO(layout, "GPENCIL_OT_layer_change", "layer", false); UI_popup_menu_end(C, pup); return OPERATOR_INTERFACE; |