[Bf-blender-cvs] [2a769e76a09] master: Outliner: Hide search options for library overrides hierarchies view

Julian Eisel noreply at git.blender.org
Thu Sep 8 14:23:50 CEST 2022


Commit: 2a769e76a09b55dcbd21bc7c6660092e09c63f00
Author: Julian Eisel
Date:   Thu Sep 8 14:10:58 2022 +0200
Branches: master
https://developer.blender.org/rB2a769e76a09b55dcbd21bc7c6660092e09c63f00

Outliner: Hide search options for library overrides hierarchies view

Searching isn't possible in the hierarchies view anymore, so the options
for it shouldn't be displayed either.
Followup to 21b92a5f31a4, forgot to remove these.

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

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 6dcbef6aa56..e3dfb5ffa61 100644
--- a/release/scripts/startup/bl_ui/space_outliner.py
+++ b/release/scripts/startup/bl_ui/space_outliner.py
@@ -401,14 +401,19 @@ class OUTLINER_PT_filter(Panel):
             row.prop(space, "show_mode_column", text="Show Mode Column")
             layout.separator()
 
-        col = layout.column(align=True)
-        col.label(text="Search")
-        col.prop(space, "use_filter_complete", text="Exact Match")
-        col.prop(space, "use_filter_case_sensitive", text="Case Sensitive")
+        filter_text_supported = True
+        # Same exception for library overrides as in OUTLINER_HT_header.
+        if display_mode == 'LIBRARY_OVERRIDES' and space.lib_override_view_mode == 'HIERARCHIES':
+            filter_text_supported = False
+
+        if filter_text_supported:
+            col = layout.column(align=True)
+            col.label(text="Search")
+            col.prop(space, "use_filter_complete", text="Exact Match")
+            col.prop(space, "use_filter_case_sensitive", text="Case Sensitive")
 
         if display_mode == 'LIBRARY_OVERRIDES' and space.lib_override_view_mode == 'PROPERTIES' and bpy.data.libraries:
-            col.separator()
-            row = col.row()
+            row = layout.row()
             row.label(icon='LIBRARY_DATA_OVERRIDE')
             row.prop(space, "use_filter_lib_override_system", text="System Overrides")



More information about the Bf-blender-cvs mailing list