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/curve | |
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/curve')
-rw-r--r-- | source/blender/editors/curve/editcurve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c index e6815582a04..05b35fef86b 100644 --- a/source/blender/editors/curve/editcurve.c +++ b/source/blender/editors/curve/editcurve.c @@ -5940,7 +5940,7 @@ static int toggle_cyclic_invoke(bContext *C, wmOperator *op, const wmEvent *UNUS if (nu->type == CU_NURBS) { pup = UI_popup_menu_begin(C, IFACE_("Direction"), ICON_NONE); layout = UI_popup_menu_layout(pup); - uiItemsEnumO(layout, op->type->idname, "direction"); + uiItemsEnumO(layout, op->type->idname, "direction", false); UI_popup_menu_end(C, pup); return OPERATOR_INTERFACE; } |