From 2d7ccae528f82f91fe11ab5ba3be36a8a84da328 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Tue, 24 Oct 2023 16:05:10 +0200 Subject: [PATCH] Fix #114015: Search filter removes panel header checkboxes Caused by 1eb90ee519c4. Co-authored by: Hans Goudey --- source/blender/editors/interface/interface_panel.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/interface/interface_panel.cc b/source/blender/editors/interface/interface_panel.cc index 52aad5be1ed..d7ea15047da 100644 --- a/source/blender/editors/interface/interface_panel.cc +++ b/source/blender/editors/interface/interface_panel.cc @@ -754,7 +754,7 @@ void UI_panel_header_buttons_end(Panel *panel) /* Repurpose the first header button group if it is empty, in case the first button added to * the panel doesn't add a new group (if the button is created directly rather than through an * interface layout call). */ - if (block->button_groups.size() > 0) { + if (block->button_groups.size() == 1 && button_group.buttons.is_empty()) { button_group.flag &= ~UI_BUTTON_GROUP_PANEL_HEADER; } else {