diff options
author | Peter Schlaile <peter@schlaile.de> | 2014-04-28 00:59:30 +0400 |
---|---|---|
committer | Peter Schlaile <peter@schlaile.de> | 2014-04-28 00:59:30 +0400 |
commit | a8eb95c4e9d680caa2904405504a27b301a57db0 (patch) | |
tree | 9cadf82cb0b7bbc4d3130584b7eacf00c9849272 /release | |
parent | 7971ffdf5e1cd14b911b9dffa6dcb25ddd6ceadb (diff) |
Fix T39597: Missing entries in VSE Preview menu
This adds some view ratios in the video sequencer menu, based (copied) on the UV/Image Editor. It also fixes the inverted ratio issue reported in the same task.
Reviewers: #video_sequencer, #user_interface, schlaile
Reviewed By: schlaile
CC: jta, dingto, sergey, schlaile
Differential Revision: https://developer.blender.org/D447
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_sequencer.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index 0ce095d48e2..b77078bf5d4 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -160,7 +160,16 @@ class SEQUENCER_MT_view(Menu): if st.view_type in {'PREVIEW', 'SEQUENCER_PREVIEW'}: layout.operator_context = 'INVOKE_REGION_PREVIEW' layout.operator("sequencer.view_all_preview", text="Fit preview in window") - layout.operator("sequencer.view_zoom_ratio", text="Show preview 1:1").ratio = 1.0 + + layout.separator() + + ratios = ((1, 8), (1, 4), (1, 2), (1, 1), (2, 1), (4, 1), (8, 1)) + + for a, b in ratios: + layout.operator("sequencer.view_zoom_ratio", text=iface_("Zoom %d:%d") % (a, b), translate=False).ratio = a / b + + layout.separator() + layout.operator_context = 'INVOKE_DEFAULT' # # XXX, invokes in the header view |