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:
authorCampbell Barton <ideasman42@gmail.com>2020-06-05 15:04:59 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-06-05 15:14:02 +0300
commit74fa600ede93852e031c73322a43e807d1b9daf0 (patch)
tree79355d24fedfb92ac83e766adcdd9ceb8af8e99c /release/scripts/startup/bl_ui/space_sequencer.py
parentd850daf416f75f1231d49cbf240151c13212a87a (diff)
Sequencer: split select side of frame out of the select operator
The select operator was getting overloaded with functionality unrelated to selecting the strip at the mouse position. - Don't save settings, allowing the keymap only to include non-default options. - Fix selecting strips overlapping the current frame overwrite all flags.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_sequencer.py')
-rw-r--r--release/scripts/startup/bl_ui/space_sequencer.py20
1 files changed, 1 insertions, 19 deletions
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py
index 4f317a97b38..26a150f83ef 100644
--- a/release/scripts/startup/bl_ui/space_sequencer.py
+++ b/release/scripts/startup/bl_ui/space_sequencer.py
@@ -394,23 +394,6 @@ class SEQUENCER_MT_select_linked(Menu):
layout.operator("sequencer.select_more", text="More")
-class SEQUENCER_MT_select_side_of_frame(Menu):
- bl_label = "Side of Current Frame"
-
- def draw(self, _context):
- layout = self.layout
-
- props = layout.operator("sequencer.select", text="Overlap")
- props.left_right = 'OVERLAP'
- props.linked_time = True
- props = layout.operator("sequencer.select", text="Left")
- props.left_right = 'LEFT'
- props.linked_time = True
- props = layout.operator("sequencer.select", text="Right")
- props.left_right = 'RIGHT'
- props.linked_time = True
-
-
class SEQUENCER_MT_select(Menu):
bl_label = "Select"
@@ -429,7 +412,7 @@ class SEQUENCER_MT_select(Menu):
layout.separator()
- layout.menu("SEQUENCER_MT_select_side_of_frame")
+ layout.operator_menu_enum("sequencer.select_side_of_frame", "side", text="Side of Frame...")
layout.menu("SEQUENCER_MT_select_handle", text="Handle")
layout.menu("SEQUENCER_MT_select_channel", text="Channel")
layout.menu("SEQUENCER_MT_select_linked", text="Linked")
@@ -2221,7 +2204,6 @@ classes = (
SEQUENCER_MT_view_toggle,
SEQUENCER_MT_preview_zoom,
SEQUENCER_MT_proxy,
- SEQUENCER_MT_select_side_of_frame,
SEQUENCER_MT_select_handle,
SEQUENCER_MT_select_channel,
SEQUENCER_MT_select_linked,