diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-08-09 17:21:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-08-09 17:22:22 +0300 |
commit | 62ff55167c87bcb63b8e9628159dc38fedaa3178 (patch) | |
tree | 09001af886488102dc4771e5a33e7f7df79bd56d | |
parent | a14805684163c9e93cae56d46aebb9d70b16158b (diff) |
Cleanup: simplify preview check in sequencer
Also removed XXX comment which is now resolved.
-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() |