[Bf-blender-cvs] [21b92a5f31a] master: Outliner: Hide search button for library overrides hierarchies view

Julian Eisel noreply at git.blender.org
Thu Sep 8 12:55:33 CEST 2022


Commit: 21b92a5f31a45ff93ee3c989a6c6109c69482d48
Author: Julian Eisel
Date:   Thu Sep 8 12:47:23 2022 +0200
Branches: master
https://developer.blender.org/rB21b92a5f31a45ff93ee3c989a6c6109c69482d48

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.

===================================================================

M	release/scripts/startup/bl_ui/space_outliner.py

===================================================================

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()



More information about the Bf-blender-cvs mailing list