diff options
author | Nathan Lovato <nathan@gdquest.com> | 2021-01-24 03:17:35 +0300 |
---|---|---|
committer | Nathan Lovato <nathan@gdquest.com> | 2021-01-24 03:17:35 +0300 |
commit | cd176b2617bd3ede969c3aa218ee54a79fc69f27 (patch) | |
tree | b4f51b2c46a95f1ebb8a001269cd8ae6f417bf2a /power_sequencer/operators/trim_left_or_right_handles.py | |
parent | b482ca0078d5640306985f478bb1dec3dbe7219b (diff) |
Update power sequencer to v2.0.1
Changelog: https://github.com/GDQuest/blender-power-sequencer/blob/master/CHANGELOG.md#power-sequencer-201
Commit range: https://github.com/GDQuest/blender-power-sequencer/compare/1.5.0...2.0.1
Diffstat (limited to 'power_sequencer/operators/trim_left_or_right_handles.py')
-rw-r--r-- | power_sequencer/operators/trim_left_or_right_handles.py | 11 |
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"} |