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:
Diffstat (limited to 'release/scripts/startup/bl_ui/space_outliner.py')
-rw-r--r--release/scripts/startup/bl_ui/space_outliner.py26
1 files changed, 24 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_outliner.py b/release/scripts/startup/bl_ui/space_outliner.py
index d64dfbfdfdf..f0f6776805d 100644
--- a/release/scripts/startup/bl_ui/space_outliner.py
+++ b/release/scripts/startup/bl_ui/space_outliner.py
@@ -47,7 +47,7 @@ class OUTLINER_HT_header(Header):
layout.separator_spacer()
row = layout.row(align=True)
- if display_mode in {'VIEW_LAYER'}:
+ if display_mode in {'SCENES', 'VIEW_LAYER'}:
row.popover(
panel="OUTLINER_PT_filter",
text="",
@@ -303,10 +303,29 @@ class OUTLINER_PT_filter(Panel):
space = context.space_data
display_mode = space.display_mode
+ if display_mode == 'VIEW_LAYER':
+ layout.label(text="Restriction Toggles:")
+ row = layout.row(align=True)
+ row.prop(space, "show_restrict_column_enable", text="")
+ row.prop(space, "show_restrict_column_selectable", text="")
+ row.prop(space, "show_restrict_column_instance", text="")
+ row.prop(space, "show_restrict_column_viewport", text="")
+ row.prop(space, "show_restrict_column_render", text="")
+ row.prop(space, "show_restrict_column_holdout", text="")
+ row.prop(space, "show_restrict_column_indirect_only", text="")
+ layout.separator()
+ elif display_mode == 'SCENES':
+ layout.label(text="Restriction Toggles:")
+ row = layout.row(align=True)
+ row.prop(space, "show_restrict_column_selectable", text="")
+ row.prop(space, "show_restrict_column_instance", text="")
+ row.prop(space, "show_restrict_column_viewport", text="")
+ row.prop(space, "show_restrict_column_render", text="")
+ layout.separator()
+
if display_mode != 'DATA_API':
col = layout.column(align=True)
col.prop(space, "use_sort_alpha")
- col.prop(space, "show_restrict_columns")
layout.separator()
col = layout.column(align=True)
@@ -314,6 +333,9 @@ class OUTLINER_PT_filter(Panel):
col.prop(space, "use_filter_complete", text="Exact Match")
col.prop(space, "use_filter_case_sensitive", text="Case Sensitive")
+ if display_mode != 'VIEW_LAYER':
+ return
+
layout.separator()
layout.label(text="Filter:")