diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-09-05 19:55:53 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-09-05 19:55:53 +0400 |
commit | 59dbd53e72ae25edf247e49ea1e291af277fecc4 (patch) | |
tree | 38040072081d00d677755f0787c5d15aa167e0b7 /source | |
parent | cc1c8268f755adfcf02085251e095b0589548719 (diff) |
Fix #28389: UILayout.menu function didn't emboss menu button correct in the
3d view tools region.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/interface/interface_layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c index ef88bb0bbb6..a2e65f5e4ec 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -1404,7 +1404,7 @@ static void ui_item_menu(uiLayout *layout, const char *name, int icon, uiMenuCre if(layout->root->type == UI_LAYOUT_HEADER) uiBlockSetEmboss(block, UI_EMBOSS); - else if(layout->root->type == UI_LAYOUT_PANEL) { + else if(ELEM(layout->root->type, UI_LAYOUT_PANEL, UI_LAYOUT_TOOLBAR)) { but->type= MENU; but->flag |= UI_TEXT_LEFT; } |