Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Lovato <nathan@gdquest.com>2020-05-15 03:31:18 +0300
committerNathan Lovato <nathan@gdquest.com>2020-05-15 03:31:18 +0300
commit8f11aecde7409633595b23f24b446943225aa319 (patch)
treed3548e7c670dd1514578ef9160ed35fdbac0c506 /power_sequencer/operators/snap_selection.py
parent55b820186e64b5362f8c3e808f160cbff49621a3 (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/snap_selection.py')
-rw-r--r--power_sequencer/operators/snap_selection.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/power_sequencer/operators/snap_selection.py b/power_sequencer/operators/snap_selection.py
index 7ad81b4d..5900579b 100644
--- a/power_sequencer/operators/snap_selection.py
+++ b/power_sequencer/operators/snap_selection.py
@@ -24,7 +24,7 @@ class POWER_SEQUENCER_OT_snap_selection(bpy.types.Operator):
*Brief* Snap the entire selection to the time cursor.
Automatically selects sequences if there is no active selection.
- To snap each strip individually, see Snap.
+ To snap each strip individually, see Snap
"""
doc = {
@@ -32,7 +32,11 @@ class POWER_SEQUENCER_OT_snap_selection(bpy.types.Operator):
"demo": "",
"description": doc_description(__doc__),
"shortcuts": [
- ({"type": "S", "value": "PRESS", "alt": True}, {}, "Snap selection to cursor")
+ (
+ {"type": "S", "value": "PRESS", "alt": True},
+ {},
+ "Snap selection to cursor",
+ )
],
"keymap": "Sequencer",
}
@@ -51,7 +55,9 @@ class POWER_SEQUENCER_OT_snap_selection(bpy.types.Operator):
if context.selected_sequences
else get_sequences_under_cursor(context)
)
- frame_first = min(sequences, key=lambda s: s.frame_final_start).frame_final_start
+ frame_first = min(
+ sequences, key=lambda s: s.frame_final_start
+ ).frame_final_start
time_offset = context.scene.frame_current - frame_first
apply_time_offset(context, sequences, time_offset)
return {"FINISHED"}