[Bf-blender-cvs] [4330362] master: Expose preview setting operators on menus for sequencer and timeline (could not find them anywhere before)
Antony Riakiotakis
noreply at git.blender.org
Mon Sep 1 14:23:19 CEST 2014
Commit: 43303625af4f1489a15fcf3fcab0c17c8c38f132
Author: Antony Riakiotakis
Date: Mon Sep 1 14:22:34 2014 +0200
Branches: master
https://developer.blender.org/rB43303625af4f1489a15fcf3fcab0c17c8c38f132
Expose preview setting operators on menus for sequencer and timeline
(could not find them anywhere before)
===================================================================
M release/scripts/startup/bl_ui/space_sequencer.py
M release/scripts/startup/bl_ui/space_time.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py
index 95384c1..532047d 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 c96b8fd..cfb147b 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()
More information about the Bf-blender-cvs
mailing list