improving gap detection in extract review

This commit is contained in:
Jakub Jezek 2022-03-17 12:59:30 +01:00
parent 9044be5153
commit 0ea4e0acd4
No known key found for this signature in database
GPG key ID: D8548FBF690B100A

View file

@ -747,10 +747,14 @@ class ExtractReview(pyblish.api.InstancePlugin):
collections = clique.assemble(files)[0]
assert len(collections) == 1, "Multiple collections found."
col = collections[0]
# do nothing if sequence is complete
if list(col.indexes)[0] == start_frame and \
list(col.indexes)[-1] == end_frame and \
col.is_contiguous():
# do nothing if no gap is found in input range
not_gap = True
for fr in range(start_frame, end_frame + 1):
if fr not in col.indexes:
not_gap = False
if not_gap:
return []
holes = col.holes()