Storypencil: Fix switch error when there are no scene strips

If there was a non scene strip, the switch was not working.
This commit is contained in:
Antonio Vazquez 2022-12-30 16:11:35 +01:00
parent 042c799b7a
commit f1c82b13ee
1 changed files with 2 additions and 1 deletions

View File

@ -339,7 +339,8 @@ def get_sequences_at_frame(
:param frame: the frame to consider
"""
return [s for s in sequences if frame >= s.frame_start + s.frame_offset_start and
frame < s.frame_start + s.frame_offset_start + s.frame_final_duration]
frame < s.frame_start + s.frame_offset_start + s.frame_final_duration and
s.type == 'SCENE']
def get_sequence_at_frame(