Update client/ayon_core/plugins/publish/collect_otio_review.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Robin De Lillo 2025-02-03 11:25:34 +01:00 committed by GitHub
parent 41739bdb0b
commit 0293d74618
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,10 +55,11 @@ class CollectOtioReview(pyblish.api.InstancePlugin):
# loop all tracks and match with name in `reviewTrack`
for track in otio_timeline.tracks:
if (
review_track_name is None
or review_track_name != track.name
):
# Skip the loop
if review_track_name is None:
break
if review_track_name != track.name:
continue
# process correct track