diff options
author | Hans Goudey <h.goudey@me.com> | 2020-11-04 01:24:22 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-11-04 01:24:22 +0300 |
commit | 5650468c842eebef01c4959965b48dde686b8328 (patch) | |
tree | d0fc585d1a3af97e60aa8b343b32632783e56245 /source/blender/editors/interface/interface_panel.c | |
parent | 8f2ebcf93f98e1cb1c6fa51ba7e4ec6fd555e39c (diff) |
Property Search: Fix missing update switching tabs after search
What I thought was an "optimization" was really a bug. The "use search
for expansion" value needs to be set for every panel, even panels in
other tabs. Otherwise it won't be properly set when switching back to
a tab that was visited during search.
Differential Revision: https://developer.blender.org/D9427
Diffstat (limited to 'source/blender/editors/interface/interface_panel.c')
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index 2a95a34e5e7..bfe5dc223c8 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -938,11 +938,7 @@ static void region_panels_set_expansion_from_seach_filter(const bContext *C, const bool use_animation) { LISTBASE_FOREACH (Panel *, panel, ®ion->panels) { - /* Checking if the panel is active is only an optimization, it would be fine to run this on - * inactive panels. */ - if (panel->runtime_flag & PANEL_ACTIVE) { - panel_set_expansion_from_seach_filter_recursive(C, panel, use_search_closed, use_animation); - } + panel_set_expansion_from_seach_filter_recursive(C, panel, use_search_closed, use_animation); } set_panels_list_data_expand_flag(C, region); } |