mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
flame: fixing selected conditions
This commit is contained in:
parent
4097a5c0a6
commit
e268ad9de1
1 changed files with 6 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue