UI: always show popover subpanel header text
authorCampbell Barton <ideasman42@gmail.com>
Sat, 9 Jun 2018 16:15:08 +0000 (18:15 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 9 Jun 2018 16:15:08 +0000 (18:15 +0200)
source/blender/editors/interface/interface_layout.c

index 685c81b..311b898 100644 (file)
@@ -4255,12 +4255,13 @@ static void ui_paneltype_draw_impl(
        panel->flag = PNL_POPOVER;
 
        if (show_header) {
+               uiLayout *row = uiLayoutRow(layout, false);
                if (pt->draw_header) {
-                       panel->layout = uiLayoutRow(layout, false);
+                       panel->layout = row;
                        pt->draw_header(C, panel);
-                       uiItemL(panel->layout, pt->label, ICON_NONE);
                        panel->layout = NULL;
                }
+               uiItemL(row, pt->label, ICON_NONE);
        }
 
        panel->layout = layout;