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:
authorok what <ok_what>2022-04-21 01:38:39 +0300
committerRichard Antalik <richardantalik@gmail.com>2022-04-21 03:01:10 +0300
commite16ff4132e35cab6a757105741b8563679bda0bd (patch)
tree4a73093fb7bed83d95f4140365605309d18b4220 /release/scripts/startup/bl_ui/space_sequencer.py
parent2bd9cbe40532143bcc520d2ec55e5ff4f4eceebb (diff)
VSE: Add frame selected operator for preview
This operator moves the view to show the selected visible strips. Reviewed By: ISS Differential Revision: https://developer.blender.org/D14222
Diffstat (limited to 'release/scripts/startup/bl_ui/space_sequencer.py')
-rw-r--r--release/scripts/startup/bl_ui/space_sequencer.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py
index bbf9548a973..00ace072bda 100644
--- a/release/scripts/startup/bl_ui/space_sequencer.py
+++ b/release/scripts/startup/bl_ui/space_sequencer.py
@@ -429,9 +429,14 @@ class SEQUENCER_MT_view(Menu):
layout.separator()
+ layout.operator_context = 'INVOKE_REGION_WIN'
+ if st.view_type == 'PREVIEW':
+ # See above (T32595)
+ layout.operator_context = 'INVOKE_REGION_PREVIEW'
+ layout.operator("sequencer.view_selected", text="Frame Selected")
+
if is_sequencer_view:
layout.operator_context = 'INVOKE_REGION_WIN'
- layout.operator("sequencer.view_selected", text="Frame Selected")
layout.operator("sequencer.view_all")
layout.operator("view2d.zoom_border", text="Zoom")