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
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2020-09-24 00:24:20 +0300
committerHans Goudey <h.goudey@me.com>2020-09-24 00:24:20 +0300
commit15afaa3db25a2416889abf39b800bca6d16f27d1 (patch)
tree5052e510d97a4a4fa0a562c22fdf710a502a19df /source/blender/editors/interface/interface_layout.c
parent23e4bbefae26838b7e677ae1676f2f0fe7a30d26 (diff)
Property Search: Fix matches in headers not used for expansion
Setting the search match flag every time property search runs can invalidate the results for panel headers. Instead, clear the flag on every redraw and or the result of every search in the panel to it.
Diffstat (limited to 'source/blender/editors/interface/interface_layout.c')
-rw-r--r--source/blender/editors/interface/interface_layout.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c
index 704246621fb..2574279f0cd 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -5338,7 +5338,9 @@ bool UI_block_apply_search_filter(uiBlock *block)
block_search_remove_search_only_roots(block);
if (block->panel != NULL) {
- ui_panel_set_search_filter_match(block->panel, has_result);
+ if (has_result) {
+ ui_panel_tag_search_filter_match(block->panel);
+ }
}
if (!panel_label_matches) {