UI: Fix collapsed panels not drawing header buttons

Error in rB940b239ad473 left a check for open panels after the
"vertical" check was removed.
This commit is contained in:
Hans Goudey 2020-08-20 10:04:17 -04:00
parent f9697543e4
commit f364d181e3
1 changed files with 2 additions and 2 deletions

View File

@ -2596,7 +2596,7 @@ static void ed_panel_draw(const bContext *C,
int xco, yco, h = 0;
int headerend = w - UI_UNIT_X;
if (pt->draw_header_preset && !(pt->flag & PNL_NO_HEADER) && open) {
if (pt->draw_header_preset && !(pt->flag & PNL_NO_HEADER)) {
/* for preset menu */
panel->layout = UI_block_layout(block,
UI_LAYOUT_HORIZONTAL,
@ -2615,7 +2615,7 @@ static void ed_panel_draw(const bContext *C,
panel->layout = NULL;
}
if (pt->draw_header && !(pt->flag & PNL_NO_HEADER) && open) {
if (pt->draw_header && !(pt->flag & PNL_NO_HEADER)) {
int labelx, labely;
UI_panel_label_offset(block, &labelx, &labely);