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.c | |
parent | e3b1d562a770edf397cb4423579c5d715c67da9c (diff) |
Fix: Icon alignment for scaled pie buttons with no text
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r-- | source/blender/editors/interface/interface.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index 7180e18ab92..64b26406f84 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -3168,7 +3168,9 @@ static uiBut *ui_def_but( } if (block->flag & UI_BLOCK_RADIAL) { - but->drawflag |= (UI_BUT_TEXT_LEFT | UI_BUT_ICON_LEFT); + but->drawflag |= UI_BUT_TEXT_LEFT; + if (but->str && but->str[0]) + but->drawflag |= UI_BUT_ICON_LEFT; } else if ((block->flag & UI_BLOCK_LOOP) || ELEM(but->type, |