diff options
author | Hans Goudey <h.goudey@me.com> | 2020-08-20 17:04:17 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-08-20 17:04:17 +0300 |
commit | f364d181e36498269117275ef41f9c1deb5310aa (patch) | |
tree | cbf8be1945cbec421b0ad0ccfa5d453cb770f5b7 /source/blender/editors | |
parent | f9697543e43b74074727a89f9dc1bc9717536c46 (diff) |
UI: Fix collapsed panels not drawing header buttons
Error in rB940b239ad473 left a check for open panels after the
"vertical" check was removed.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/screen/area.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index fcbe0a90cdb..27a641dc6d8 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -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); |