diff options
author | raa <roaoao@gmail.com> | 2017-06-20 20:15:04 +0300 |
---|---|---|
committer | raa <roaoao@gmail.com> | 2017-06-20 20:15:04 +0300 |
commit | 9e08019b74c7032feea81db16eb9165899c3fd41 (patch) | |
tree | 2a9d61c9e09c9e761fb41ec722e5b8ffa3f71921 /source/blender/editors/interface/interface_layout.c | |
parent | e3b1d562a770edf397cb4423579c5d715c67da9c (diff) |
Fix: Icon alignment for scaled pie buttons with no text
Diffstat (limited to 'source/blender/editors/interface/interface_layout.c')
-rw-r--r-- | source/blender/editors/interface/interface_layout.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c index 30a2094fee7..da43a58bc74 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -2396,8 +2396,10 @@ static void ui_litem_layout_radial(uiLayout *litem) /* add a little bit more here to include number */ bitem->but->rect.xmax += 1.5f * UI_UNIT_X; /* enable drawing as pie item if supported by widget */ - if (ui_item_is_radial_drawable(bitem)) + if (ui_item_is_radial_drawable(bitem)) { bitem->but->dt = UI_EMBOSS_RADIAL; + bitem->but->drawflag |= UI_BUT_ICON_LEFT; + } } ui_item_size(item, &itemw, &itemh); |