Fix #28389: UILayout.menu function didn't emboss menu button correct in the
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 5 Sep 2011 15:55:53 +0000 (15:55 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 5 Sep 2011 15:55:53 +0000 (15:55 +0000)
3d view tools region.

source/blender/editors/interface/interface_layout.c

index ef88bb0bbb6639f098210e5f549b0d14e417e479..a2e65f5e4ece5c71718608d130d31237a9d473b6 100644 (file)
@@ -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;
        }