Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_topbar.py
| Context not available. | |||||
| def draw_right(self, context): | def draw_right(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| window = context.window | |||||
| screen = context.screen | screen = context.screen | ||||
| scene = window.scene | |||||
| # If statusbar is hidden, still show messages at the top | # If statusbar is hidden, still show messages at the top | ||||
| if not screen.show_statusbar: | if not screen.show_statusbar: | ||||
| layout.template_reports_banner() | layout.template_reports_banner() | ||||
| layout.template_running_jobs() | layout.template_running_jobs() | ||||
| # Active workspace view-layer is retrieved through window, not through workspace. | |||||
| layout.template_ID(window, "scene", new="scene.new", unlink="scene.delete") | |||||
| row = layout.row(align=True) | |||||
| row.template_search( | |||||
| window, "view_layer", | |||||
| scene, "view_layers", | |||||
| new="scene.view_layer_add", | |||||
| unlink="scene.view_layer_remove") | |||||
| class TOPBAR_HT_lower_bar(Header): | class TOPBAR_HT_lower_bar(Header): | ||||
| bl_space_type = 'TOPBAR' | bl_space_type = 'TOPBAR' | ||||
| Context not available. | |||||