diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-10-20 06:16:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-10-20 06:16:47 +0300 |
commit | c4668b72e073a66ac09aa02622b7d25f1339fcdb (patch) | |
tree | fc66ddd38da3948d8e26e00b519876e122a732c3 /source/blender/editors/interface/interface_panel.c | |
parent | 74d1fba1de66362a9365c907ce75881ee2cb2fca (diff) |
Cleanup: use BLI_listbase_is_single instead of counting
Diffstat (limited to 'source/blender/editors/interface/interface_panel.c')
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index 991531b4f0d..2a95a34e5e7 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -780,7 +780,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 (BLI_listbase_count(&block->button_groups) == 1 && + if (BLI_listbase_is_single(&block->button_groups) && BLI_listbase_is_empty(&button_group->buttons)) { button_group->flag &= ~UI_BUTTON_GROUP_PANEL_HEADER; } |