Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2012-09-21 19:19:26 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2012-09-21 19:19:26 +0400
commitecf6beb8d306ede8f49b2bbffde07e2a1f849715 (patch)
tree7f9a3c6b1a94d0b92835996d4736935ae68a13c4 /release
parentfad952f4234d49e31677ff995fcb626e3063309f (diff)
More fixes in Sequencer's View menu (thanks to Lockal for pointing those ;) ).
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_sequencer.py20
1 files 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")