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/trim_left_or_right_handles.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/trim_left_or_right_handles.py')
-rw-r--r--power_sequencer/operators/trim_left_or_right_handles.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/power_sequencer/operators/trim_left_or_right_handles.py b/power_sequencer/operators/trim_left_or_right_handles.py
index 675814ce..b93bee53 100644
--- a/power_sequencer/operators/trim_left_or_right_handles.py
+++ b/power_sequencer/operators/trim_left_or_right_handles.py
@@ -26,7 +26,7 @@ class POWER_SEQUENCER_OT_trim_left_or_right_handles(bpy.types.Operator):
Trims or extends the handle closest to the time cursor for all selected strips.
If you keep the Shift key down, the edit will ripple through the timeline.
- 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 = {
@@ -78,9 +78,16 @@ class POWER_SEQUENCER_OT_trim_left_or_right_handles(bpy.types.Operator):
frame_current = context.scene.frame_current
# Only select sequences under the time cursor
- sequences = context.selected_sequences if context.selected_sequences else context.sequences
+ sequences = (
+ context.selected_sequences
+ if context.selected_sequences
+ else context.sequences
+ )
for s in sequences:
- s.select = s.frame_final_start <= frame_current and s.frame_final_end >= frame_current
+ s.select = (
+ s.frame_final_start <= frame_current
+ and s.frame_final_end >= frame_current
+ )
sequences = [s for s in sequences if s.select]
if not sequences:
return {"FINISHED"}