From ecf6beb8d306ede8f49b2bbffde07e2a1f849715 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Fri, 21 Sep 2012 15:19:26 +0000 Subject: [PATCH] More fixes in Sequencer's View menu (thanks to Lockal for pointing those ;) ). --- .../scripts/startup/bl_ui/space_sequencer.py | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index 3c8ef33811b..6d121f04e23 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -152,17 +152,21 @@ class SEQUENCER_MT_view(Menu): # # XXX, invokes in the header view # layout.operator("sequencer.view_ghost_border", text="Overlay Border") - layout.prop(st, "show_seconds") + if st.view_type in {'SEQUENCER', 'SEQUENCER_PREVIEW'}: + layout.prop(st, "show_seconds") + layout.prop(st, "show_frame_indicator") - layout.prop(st, "show_frame_indicator") - if st.display_mode == 'IMAGE': - layout.prop(st, "show_safe_margin") - if st.display_mode == 'WAVEFORM': - layout.prop(st, "show_separate_color") + if st.view_type in {'PREVIEW', 'SEQUENCER_PREVIEW'}: + if st.display_mode == 'IMAGE': + layout.prop(st, "show_safe_margin") + elif st.display_mode == 'WAVEFORM': + layout.prop(st, "show_separate_color") layout.separator() - layout.prop(st, "use_marker_sync") - layout.separator() + + if st.view_type in {'SEQUENCER', 'SEQUENCER_PREVIEW'}: + layout.prop(st, "use_marker_sync") + layout.separator() layout.operator("screen.area_dupli") layout.operator("screen.screen_full_area")