Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_outliner.py
| Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Lines | class OUTLINER_MT_view(Menu): | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| space = context.space_data | space = context.space_data | ||||
| if space.display_mode not in {'DATABLOCKS', 'USER_PREFERENCES', 'KEYMAPS'}: | if space.display_mode not in {'DATABLOCKS', 'USER_PREFERENCES', 'KEYMAPS'}: | ||||
| if space.display_mode not in {'ACT_LAYER', 'COLLECTIONS'}: | if space.display_mode not in {'ACT_LAYER', 'COLLECTIONS'}: | ||||
| layout.prop(space, "use_sort_alpha") | layout.prop(space, "use_sort_alpha") | ||||
| else: | |||||
| layout.prop(space, "use_filter_object") | |||||
| layout.separator() | |||||
| layout.prop(space, "show_restrict_columns") | layout.prop(space, "show_restrict_columns") | ||||
| layout.separator() | layout.separator() | ||||
| layout.operator("outliner.show_active") | layout.operator("outliner.show_active") | ||||
| layout.operator("outliner.show_one_level", text="Show One Level") | layout.operator("outliner.show_one_level", text="Show One Level") | ||||
| layout.operator("outliner.show_one_level", text="Hide One Level").open = False | layout.operator("outliner.show_one_level", text="Hide One Level").open = False | ||||
| layout.operator("outliner.show_hierarchy") | layout.operator("outliner.show_hierarchy") | ||||
| ▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines | |||||