From 74fa600ede93852e031c73322a43e807d1b9daf0 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 5 Jun 2020 22:04:59 +1000 Subject: 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. --- release/scripts/startup/bl_ui/space_sequencer.py | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'release/scripts/startup/bl_ui/space_sequencer.py') 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, -- cgit v1.2.3