From 530183b60a00fc46f6175ae50fa5d3ff19b664c3 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Mon, 14 Sep 2020 10:22:56 -0500 Subject: Property Search: Add explanatory comment --- source/blender/editors/interface/interface_layout.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c index 92c4c6228de..78f2a3ac084 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -5139,6 +5139,10 @@ static bool block_search_panel_label_matches(const uiBlock *block) return false; } +/** + * Buttons for search only layouts (closed panel subpanels) have still been added from the + * layout functions, but they need to be hidden. Theoretically they could be removed too. + */ static void layout_free_and_hide_buttons(uiLayout *layout) { LISTBASE_FOREACH_MUTABLE (uiItem *, item, &layout->items) { -- cgit v1.2.3