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:
authorJulian Eisel <julian@blender.org>2022-09-08 13:47:23 +0300
committerJulian Eisel <julian@blender.org>2022-09-08 13:54:49 +0300
commit21b92a5f31a45ff93ee3c989a6c6109c69482d48 (patch)
tree29ca7d8ef88a8986905d7688869ea361bcee3716 /release
parentd481fb10efb9f20094330766b562a77c643a15b0 (diff)
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.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_outliner.py11
1 files changed, 9 insertions, 2 deletions
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()