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/gap_remove.py')
-rw-r--r--power_sequencer/operators/gap_remove.py18
1 files changed, 13 insertions, 5 deletions
diff --git a/power_sequencer/operators/gap_remove.py b/power_sequencer/operators/gap_remove.py
index 413d5466..4a736051 100644
--- a/power_sequencer/operators/gap_remove.py
+++ b/power_sequencer/operators/gap_remove.py
@@ -55,7 +55,7 @@ class POWER_SEQUENCER_OT_gap_remove(bpy.types.Operator):
)
move_time_cursor: bpy.props.BoolProperty(
name="Move Time Cursor",
- description="Move the time cursor when closing the gap.",
+ description="Move the time cursor when closing the gap",
default=False,
)
@@ -71,7 +71,9 @@ class POWER_SEQUENCER_OT_gap_remove(bpy.types.Operator):
else context.sequences
)
sequences = [
- s for s in sequences if s.frame_final_start >= frame or s.frame_final_end > frame
+ s
+ for s in sequences
+ if s.frame_final_start >= frame or s.frame_final_end > frame
]
sequence_blocks = slice_selection(context, sequences)
if not sequence_blocks:
@@ -98,12 +100,18 @@ class POWER_SEQUENCER_OT_gap_remove(bpy.types.Operator):
Finds and returns the frame at which the gap starts.
Takes a list sequences sorted by frame_final_start.
"""
- strips_start = min(sorted_sequences, key=attrgetter("frame_final_start")).frame_final_start
- strips_end = max(sorted_sequences, key=attrgetter("frame_final_end")).frame_final_end
+ strips_start = min(
+ sorted_sequences, key=attrgetter("frame_final_start")
+ ).frame_final_start
+ strips_end = max(
+ sorted_sequences, key=attrgetter("frame_final_end")
+ ).frame_final_end
gap_frame = -1
if strips_start > frame:
- strips_before_frame_start = [s for s in context.sequences if s.frame_final_end <= frame]
+ strips_before_frame_start = [
+ s for s in context.sequences if s.frame_final_end <= frame
+ ]
frame_target = 0
if strips_before_frame_start:
frame_target = max(