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:
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"}