[Bf-blender-cvs] [f364d181e36] master: UI: Fix collapsed panels not drawing header buttons

Hans Goudey noreply at git.blender.org
Thu Aug 20 16:04:34 CEST 2020


Commit: f364d181e36498269117275ef41f9c1deb5310aa
Author: Hans Goudey
Date:   Thu Aug 20 10:04:17 2020 -0400
Branches: master
https://developer.blender.org/rBf364d181e36498269117275ef41f9c1deb5310aa

UI: Fix collapsed panels not drawing header buttons

Error in rB940b239ad473 left a check for open panels after the
"vertical" check was removed.

===================================================================

M	source/blender/editors/screen/area.c

===================================================================

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);



More information about the Bf-blender-cvs mailing list