diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-09-26 21:32:50 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-09-26 21:32:50 +0400 |
commit | e897c8e83e1277767d9a44cb0ecb6f8a279dddc3 (patch) | |
tree | dae5d5ca06b7727e11242057119c23265db977fe /source | |
parent | dc76be62d99f4da1983cfa84aa9c6d86124064ab (diff) |
fix [#28742] UILayout.menu() with icon misbehaves in headers
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/interface/interface_widgets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c index 62bb93055b5..0215cc05d36 100644 --- a/source/blender/editors/interface/interface_widgets.c +++ b/source/blender/editors/interface/interface_widgets.c @@ -889,7 +889,7 @@ static void widget_draw_icon(uiBut *but, BIFIconID icon, float alpha, rcti *rect UI_icon_draw_aspect(xs, ys, icon, aspect, alpha); } - if(but->flag & UI_ICON_SUBMENU) { + if((but->flag & UI_ICON_SUBMENU) && (but->dt == UI_EMBOSSP)) { xs= rect->xmax-17; ys= (rect->ymin+rect->ymax- height)/2; |