Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2020-09-10 20:39:46 +0300
committerHans Goudey <h.goudey@me.com>2020-09-10 20:39:46 +0300
commit8679b24b919204ddcd5c374e2303a9533e65948f (patch)
tree793b8363ce32cd8406773dfc656a4280a66af403 /source
parent36b3364ef3cadd4804794d8d7de09cad0619fdfe (diff)
Property Search: Remove redundant button hiding code
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/interface/interface_layout.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c
index d2bcbd19d2c..1bddb20553a 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -5279,14 +5279,6 @@ void UI_block_apply_search_filter(uiBlock *block)
block_search_remove_search_only_roots(block);
- if (UI_block_is_search_only(block)) {
- /* Make sure all of the block's buttons are hidden. They might not have
- * been hidden if a layout wasn't searched. */
- LISTBASE_FOREACH (uiBut *, but, &block->buttons) {
- but->flag |= UI_HIDDEN;
- }
- }
-
if (block->panel != NULL) {
ui_panel_set_search_filter_match(block->panel, has_result);
}