Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_sequencer.py
| Show First 20 Lines • Show All 221 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| if st.view_type == 'PREVIEW': | if st.view_type == 'PREVIEW': | ||||
| # Specifying the REGION_PREVIEW context is needed in preview-only | # Specifying the REGION_PREVIEW context is needed in preview-only | ||||
| # mode, else the lookup for the shortcut will fail in | # mode, else the lookup for the shortcut will fail in | ||||
| # wm_keymap_item_find_props() (see #32595). | # wm_keymap_item_find_props() (see #32595). | ||||
| layout.operator_context = 'INVOKE_REGION_PREVIEW' | layout.operator_context = 'INVOKE_REGION_PREVIEW' | ||||
| layout.prop(st, "show_region_ui") | layout.prop(st, "show_region_ui") | ||||
| layout.operator_context = 'INVOKE_DEFAULT' | layout.operator_context = 'INVOKE_DEFAULT' | ||||
| if is_sequencer_view: | |||||
| layout.prop(st, "show_region_hud") | |||||
| if st.view_type == 'SEQUENCER': | if st.view_type == 'SEQUENCER': | ||||
| layout.prop(st, "show_backdrop", text="Preview as Backdrop") | layout.prop(st, "show_backdrop", text="Preview as Backdrop") | ||||
| layout.separator() | layout.separator() | ||||
| if is_sequencer_view: | if is_sequencer_view: | ||||
| layout.operator_context = 'INVOKE_REGION_WIN' | layout.operator_context = 'INVOKE_REGION_WIN' | ||||
| layout.operator("sequencer.view_selected", text="Frame Selected") | layout.operator("sequencer.view_selected", text="Frame Selected") | ||||
| ▲ Show 20 Lines • Show All 992 Lines • Show Last 20 Lines | |||||