From 21b92a5f31a45ff93ee3c989a6c6109c69482d48 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Thu, 8 Sep 2022 12:47:23 +0200 Subject: Outliner: Hide search button for library overrides hierarchies view c9a996790307 added a workaround for performance issues in heavy production scenes in the library overrides hierarchies view, reducing the amounts of elements to be built. Searching for elements would still have to build the entire tree, so Blender would essentially freeze when searching in mentioned heavy scenes. Removing the search functionality works around this issue for now. --- release/scripts/startup/bl_ui/space_outliner.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'release') diff --git a/release/scripts/startup/bl_ui/space_outliner.py b/release/scripts/startup/bl_ui/space_outliner.py index dc4eea13ce3..6dcbef6aa56 100644 --- a/release/scripts/startup/bl_ui/space_outliner.py +++ b/release/scripts/startup/bl_ui/space_outliner.py @@ -30,8 +30,15 @@ class OUTLINER_HT_header(Header): layout.separator_spacer() - row = layout.row(align=True) - row.prop(space, "filter_text", icon='VIEWZOOM', text="") + filter_text_supported = True + # No text filtering for library override hierarchies. The tree is lazy built to avoid + # performance issues in complex files. + if display_mode == 'LIBRARY_OVERRIDES' and space.lib_override_view_mode == 'HIERARCHIES': + filter_text_supported = False + + if filter_text_supported: + row = layout.row(align=True) + row.prop(space, "filter_text", icon='VIEWZOOM', text="") layout.separator_spacer() -- cgit v1.2.3