diff options
author | Nathan Lovato <nathan@gdquest.com> | 2020-05-15 03:31:18 +0300 |
---|---|---|
committer | Nathan Lovato <nathan@gdquest.com> | 2020-05-15 03:31:18 +0300 |
commit | 8f11aecde7409633595b23f24b446943225aa319 (patch) | |
tree | d3548e7c670dd1514578ef9160ed35fdbac0c506 /power_sequencer/operators/cut_strips_under_cursor.py | |
parent | 55b820186e64b5362f8c3e808f160cbff49621a3 (diff) |
Power Sequencer: address docstring warnings
The previous commit passed tests without warnings or errors here, but LazyDodo sent
me a log with warnings he was getting on his machine. This commit
attempts to address them.
Note: I'm not getting warnings when running unit tests here.
Diffstat (limited to 'power_sequencer/operators/cut_strips_under_cursor.py')
-rw-r--r-- | power_sequencer/operators/cut_strips_under_cursor.py | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/power_sequencer/operators/cut_strips_under_cursor.py b/power_sequencer/operators/cut_strips_under_cursor.py index b7c64135..d7e1141a 100644 --- a/power_sequencer/operators/cut_strips_under_cursor.py +++ b/power_sequencer/operators/cut_strips_under_cursor.py @@ -23,14 +23,16 @@ from .utils.functions import get_mouse_frame_and_channel class POWER_SEQUENCER_OT_split_strips_under_cursor(bpy.types.Operator): """ Splits all strips under cursor including muted strips, but excluding locked strips. - Auto selects sequences under the time cursor when you don't have a selection. + Auto selects sequences under the time cursor when you don't have a selection """ doc = { "name": doc_name(__qualname__), "demo": "https://i.imgur.com/ZyEd0jD.gif", "description": doc_description(__doc__), - "shortcuts": [({"type": "K", "value": "PRESS"}, {}, "Cut All Strips Under Cursor")], + "shortcuts": [ + ({"type": "K", "value": "PRESS"}, {}, "Cut All Strips Under Cursor") + ], "keymap": "Sequencer", } bl_idname = doc_idname(__qualname__) @@ -39,7 +41,10 @@ class POWER_SEQUENCER_OT_split_strips_under_cursor(bpy.types.Operator): bl_options = {"REGISTER", "UNDO"} side: bpy.props.EnumProperty( - items=[("LEFT", "", ""), ("RIGHT", "", "")], name="Side", default="LEFT", options={"HIDDEN"} + items=[("LEFT", "", ""), ("RIGHT", "", "")], + name="Side", + default="LEFT", + options={"HIDDEN"}, ) @classmethod @@ -61,5 +66,10 @@ class POWER_SEQUENCER_OT_split_strips_under_cursor(bpy.types.Operator): deselect = False if deselect: bpy.ops.sequencer.select_all(action="DESELECT") - (context.selected_sequences or bpy.ops.power_sequencer.select_strips_under_cursor()) - return bpy.ops.sequencer.split(frame=context.scene.frame_current, side=self.side) + ( + context.selected_sequences + or bpy.ops.power_sequencer.select_strips_under_cursor() + ) + return bpy.ops.sequencer.split( + frame=context.scene.frame_current, side=self.side + ) |