[Bf-blender-cvs] [b5fc8f611e3] master: Outliner: Hide ID type filter for library overrides

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


Commit: b5fc8f611e3948a19c26d425496d76079506f480
Author: Julian Eisel
Date:   Thu Sep 8 14:19:59 2022 +0200
Branches: master
https://developer.blender.org/rBb5fc8f611e3948a19c26d425496d76079506f480

Outliner: Hide ID type filter for library overrides

a) There were two filter icons next to each other in the header which
isn't exactly professional, b) the filter was redundant since IDs are
now grouped under an ID type element ("Objects", "Collection", ...)
anyway.
In the hierarchies view it was already hidden (because the whole point
of it is to show relationships between IDs, you wouldn't want to have
any parts of the hierarchy hidden).

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

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 e3dfb5ffa61..ec0ad401f5a 100644
--- a/release/scripts/startup/bl_ui/space_outliner.py
+++ b/release/scripts/startup/bl_ui/space_outliner.py
@@ -53,11 +53,8 @@ class OUTLINER_HT_header(Header):
                 text="",
                 icon='FILTER',
             )
-        if display_mode == 'LIBRARY_OVERRIDES' and space.lib_override_view_mode == 'HIERARCHIES':
-            # Don't add ID type filter for library overrides hierarchies mode. Point of it is to see a hierarchy that is
-            # usually constructed out of different ID types.
-            pass
-        elif display_mode in {'LIBRARIES', 'LIBRARY_OVERRIDES', 'ORPHAN_DATA'}:
+
+        if display_mode in {'LIBRARIES' 'ORPHAN_DATA'}:
             row.prop(space, "use_filter_id_type", text="", icon='FILTER')
             sub = row.row(align=True)
             sub.active = space.use_filter_id_type



More information about the Bf-blender-cvs mailing list