Fix RMB menu in popup, included 'Header' submenu

This commit is contained in:
Campbell Barton 2015-05-26 16:23:26 +10:00
parent e4dc44d7ab
commit 9b1ca19396
1 changed files with 1 additions and 1 deletions

View File

@ -6658,7 +6658,7 @@ static bool ui_but_menu(bContext *C, uiBut *but)
}
/* Show header tools for header buttons. */
{
if (ui_block_is_menu(but->block) == false) {
ARegion *ar = CTX_wm_region(C);
if (ar && (ar->regiontype == RGN_TYPE_HEADER)) {
uiItemMenuF(layout, IFACE_("Header"), ICON_NONE, ED_screens_header_tools_menu_create, NULL);