diff options
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/space_sequencer.py | 15 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_time.py | 5 |
2 files changed, 19 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index 95384c1ee8b..532047da3d2 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -59,12 +59,17 @@ class SEQUENCER_HT_header(Header): layout = self.layout st = context.space_data + scene = context.scene row = layout.row(align=True) row.template_header() SEQUENCER_MT_editor_menus.draw_collapsible(context, layout) + row = layout.row(align=True) + row.prop(scene, "use_preview_range", text="", toggle=True) + row.prop(scene, "lock_frame_selection_to_range", text="", toggle=True) + layout.prop(st, "view_type", expand=True, text="") if st.view_type in {'PREVIEW', 'SEQUENCER_PREVIEW'}: @@ -122,6 +127,7 @@ class SEQUENCER_MT_editor_menus(Menu): layout.menu("SEQUENCER_MT_select") layout.menu("SEQUENCER_MT_marker") layout.menu("SEQUENCER_MT_add") + layout.menu("SEQUENCER_MT_frame") layout.menu("SEQUENCER_MT_strip") @@ -237,6 +243,15 @@ class SEQUENCER_MT_change(Menu): layout.operator("sequencer.change_path", text="Path/Files") +class SEQUENCER_MT_frame(Menu): + bl_label = "Frame" + + def draw(self, context): + layout = self.layout + + layout.operator("anim.previewrange_clear") + layout.operator("anim.previewrange_set") + class SEQUENCER_MT_add(Menu): bl_label = "Add" diff --git a/release/scripts/startup/bl_ui/space_time.py b/release/scripts/startup/bl_ui/space_time.py index c96b8fd568e..cfb147b3566 100644 --- a/release/scripts/startup/bl_ui/space_time.py +++ b/release/scripts/startup/bl_ui/space_time.py @@ -176,8 +176,11 @@ class TIME_MT_frame(Menu): def draw(self, context): layout = self.layout - layout.operator("time.start_frame_set") + layout.operator("anim.previewrange_clear") + layout.operator("anim.previewrange_set") + layout.separator() layout.operator("time.end_frame_set") + layout.operator("time.start_frame_set") layout.separator() |