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.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/power_sequencer/operators/trim_left_or_right_handles.py b/power_sequencer/operators/trim_left_or_right_handles.py
index b93bee53..bbbb8bd5 100644
--- a/power_sequencer/operators/trim_left_or_right_handles.py
+++ b/power_sequencer/operators/trim_left_or_right_handles.py
@@ -78,16 +78,9 @@ 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"}