Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_outliner.py
| Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| layout.separator_spacer() | layout.separator_spacer() | ||||
| if display_mode == 'SEQUENCE': | if display_mode == 'SEQUENCE': | ||||
| row = layout.row(align=True) | row = layout.row(align=True) | ||||
| row.prop(space, "use_sync_select", icon='UV_SYNC_SELECT', text="") | row.prop(space, "use_sync_select", icon='UV_SYNC_SELECT', text="") | ||||
| row = layout.row(align=True) | row = layout.row(align=True) | ||||
| if display_mode in {'SCENES', 'VIEW_LAYER'}: | if display_mode in {'SCENES', 'VIEW_LAYER', 'LIBRARY_OVERRIDES'}: | ||||
| row.popover( | row.popover( | ||||
| panel="OUTLINER_PT_filter", | panel="OUTLINER_PT_filter", | ||||
| text="", | text="", | ||||
| icon='FILTER', | icon='FILTER', | ||||
| ) | ) | ||||
| elif display_mode in {'LIBRARIES', 'ORPHAN_DATA'}: | if display_mode in {'LIBRARIES', 'LIBRARY_OVERRIDES', 'ORPHAN_DATA'}: | ||||
| row.prop(space, "use_filter_id_type", text="", icon='FILTER') | row.prop(space, "use_filter_id_type", text="", icon='FILTER') | ||||
| sub = row.row(align=True) | sub = row.row(align=True) | ||||
| sub.active = space.use_filter_id_type | sub.active = space.use_filter_id_type | ||||
| sub.prop(space, "filter_id_type", text="", icon_only=True) | sub.prop(space, "filter_id_type", text="", icon_only=True) | ||||
| if display_mode == 'VIEW_LAYER': | if display_mode == 'VIEW_LAYER': | ||||
| layout.operator("outliner.collection_new", text="", icon='COLLECTION_NEW').nested = True | layout.operator("outliner.collection_new", text="", icon='COLLECTION_NEW').nested = True | ||||
| ▲ Show 20 Lines • Show All 267 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| row.prop(space, "show_restrict_column_viewport", text="") | row.prop(space, "show_restrict_column_viewport", text="") | ||||
| row.prop(space, "show_restrict_column_render", text="") | row.prop(space, "show_restrict_column_render", text="") | ||||
| layout.separator() | layout.separator() | ||||
| if display_mode != 'DATA_API': | if display_mode != 'DATA_API': | ||||
| col = layout.column(align=True) | col = layout.column(align=True) | ||||
| col.prop(space, "use_sort_alpha") | col.prop(space, "use_sort_alpha") | ||||
| if display_mode not in {'LIBRARY_OVERRIDES'}: | |||||
| row = layout.row(align=True) | row = layout.row(align=True) | ||||
| row.prop(space, "use_sync_select", text="Sync Selection") | row.prop(space, "use_sync_select", text="Sync Selection") | ||||
| row = layout.row(align=True) | row = layout.row(align=True) | ||||
| row.prop(space, "show_mode_column", text="Show Mode Column") | row.prop(space, "show_mode_column", text="Show Mode Column") | ||||
| layout.separator() | layout.separator() | ||||
| col = layout.column(align=True) | col = layout.column(align=True) | ||||
| col.label(text="Search") | col.label(text="Search") | ||||
| col.prop(space, "use_filter_complete", text="Exact Match") | col.prop(space, "use_filter_complete", text="Exact Match") | ||||
| col.prop(space, "use_filter_case_sensitive", text="Case Sensitive") | col.prop(space, "use_filter_case_sensitive", text="Case Sensitive") | ||||
| if display_mode != 'VIEW_LAYER': | if display_mode in {'LIBRARY_OVERRIDES'} and bpy.data.libraries: | ||||
| col.separator() | |||||
| row = col.row() | |||||
| row.label(icon='LIBRARY_DATA_OVERRIDE') | |||||
| row.prop(space, "use_filter_lib_override_system", text="System Overrides") | |||||
| if display_mode not in {'VIEW_LAYER'}: | |||||
| return | return | ||||
| layout.separator() | layout.separator() | ||||
| layout.label(text="Filter") | layout.label(text="Filter") | ||||
| col = layout.column(align=True) | col = layout.column(align=True) | ||||
| Show All 35 Lines | def draw(self, context): | ||||
| row.prop(space, "use_filter_object_light", text="Lights") | row.prop(space, "use_filter_object_light", text="Lights") | ||||
| if bpy.data.cameras: | if bpy.data.cameras: | ||||
| row = sub.row() | row = sub.row() | ||||
| row.label(icon='CAMERA_DATA') | row.label(icon='CAMERA_DATA') | ||||
| row.prop(space, "use_filter_object_camera", text="Cameras") | row.prop(space, "use_filter_object_camera", text="Cameras") | ||||
| row = sub.row() | row = sub.row() | ||||
| row.label(icon='EMPTY_DATA') | row.label(icon='EMPTY_DATA') | ||||
| row.prop(space, "use_filter_object_empty", text="Empties") | row.prop(space, "use_filter_object_empty", text="Empties") | ||||
| row = sub.row() | |||||
| if bpy.data.libraries: | |||||
| row.label(icon='LIBRARY_DATA_OVERRIDE') | |||||
| row.prop(space, "use_filter_lib_override", text="Library Overrides") | |||||
| if ( | if ( | ||||
| bpy.data.curves or | bpy.data.curves or | ||||
| bpy.data.metaballs or | bpy.data.metaballs or | ||||
| (hasattr(bpy.data, "hairs") and bpy.data.hairs) or | (hasattr(bpy.data, "hairs") and bpy.data.hairs) or | ||||
| (hasattr(bpy.data, "pointclouds") and bpy.data.pointclouds) or | (hasattr(bpy.data, "pointclouds") and bpy.data.pointclouds) or | ||||
| bpy.data.volumes or | bpy.data.volumes or | ||||
| bpy.data.lightprobes or | bpy.data.lightprobes or | ||||
| bpy.data.lattices or | bpy.data.lattices or | ||||
| bpy.data.fonts or | bpy.data.fonts or | ||||
| bpy.data.speakers | bpy.data.speakers | ||||
| ): | ): | ||||
| row = sub.row() | row = sub.row() | ||||
| row.label(icon='BLANK1') | row.label(icon='BLANK1') | ||||
| row.prop(space, "use_filter_object_others", text="Others") | row.prop(space, "use_filter_object_others", text="Others") | ||||
| if bpy.data.libraries: | |||||
| col.separator() | |||||
| row = col.row() | |||||
| row.label(icon='LIBRARY_DATA_OVERRIDE') | |||||
| row.prop(space, "use_filter_lib_override", text="Library Overrides") | |||||
| row = col.row() | |||||
| row.label(icon='LIBRARY_DATA_OVERRIDE') | |||||
| row.prop(space, "use_filter_lib_override_system", text="System Overrides") | |||||
| classes = ( | classes = ( | ||||
| OUTLINER_HT_header, | OUTLINER_HT_header, | ||||
| OUTLINER_MT_editor_menus, | OUTLINER_MT_editor_menus, | ||||
| OUTLINER_MT_edit_datablocks, | OUTLINER_MT_edit_datablocks, | ||||
| OUTLINER_MT_collection, | OUTLINER_MT_collection, | ||||
| OUTLINER_MT_collection_new, | OUTLINER_MT_collection_new, | ||||
| OUTLINER_MT_collection_visibility, | OUTLINER_MT_collection_visibility, | ||||
| Show All 11 Lines | |||||