diff options
Diffstat (limited to 'release/scripts/startup/bl_ui/space_sequencer.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_sequencer.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index 9da4d9e6a20..f12dff248ed 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -243,19 +243,14 @@ class SEQUENCER_MT_view(Menu): layout.operator("sequencer.view_all_preview", text="Fit Preview in Window") - if st.view_type != 'SEQUENCER_PREVIEW': - layout.operator("view2d.zoom_border", text="Zoom") - - if st.view_type == 'SEQUENCER_PREVIEW': + if is_sequencer_view: layout.menu("SEQUENCER_MT_preview_zoom", text="Fractional Preview Zoom") - elif st.view_type == 'PREVIEW': + else: + layout.operator("view2d.zoom_border", text="Zoom") layout.menu("SEQUENCER_MT_preview_zoom") layout.operator_context = 'INVOKE_DEFAULT' - # # XXX, invokes in the header view - # layout.operator("sequencer.view_ghost_border", text="Overlay Border") - if is_sequencer_view: layout.separator() |