Skip to content

Commit

Permalink
fix: error when trimming effect strips
Browse files Browse the repository at this point in the history
part of #461
  • Loading branch information
NathanLovato committed Jul 24, 2022
1 parent 380130d commit 9047346
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion operators/utils/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,11 @@ def delete_strips(to_delete):
"""
Deletes the list of sequences `to_delete`
"""
# Effect strips get deleted with their source so we skip them to avoid errors.
to_delete = [s for s in to_delete if s.type in SequenceTypes.CUTABLE]
sequences = bpy.context.scene.sequence_editor.sequences
for s in to_delete:
bpy.context.scene.sequence_editor.sequences.remove(s)
sequences.remove(s)


def move_selection(context, sequences, frame_offset, channel_offset=0):
Expand Down

0 comments on commit 9047346

Please sign in to comment.