flame: fixing selected conditions

This commit is contained in:
Jakub Jezek 2022-01-10 12:11:06 +01:00
parent 4097a5c0a6
commit e268ad9de1
No known key found for this signature in database
GPG key ID: D8548FBF690B100A

View file

@ -446,8 +446,12 @@ def get_sequence_segments(sequence, selected=False):
continue
# loop all segment in remaining tracks
for segment in track.segments:
# ignore all segments not selected
if segment.selected is not True and selected is True:
if segment.name.get_value() == "":
continue
if (
selected is True
and segment.selected.get_value() is not True
):
continue
# add it to original selection
segments.append(segment)