fix(nk): validator of rendered frames failed if slate were missing

This commit is contained in:
Jakub Jezek 2020-02-18 11:39:32 +01:00
parent f38cbfc064
commit c4f049f64e
No known key found for this signature in database
GPG key ID: C4B96E101D2A47F3

View file

@ -76,7 +76,8 @@ class ValidateRenderedFrames(pyblish.api.InstancePlugin):
'len(collection.indexes): {}'.format(collected_frames_len)
)
if "slate" in instance.data["families"]:
if ("slate" in instance.data["families"]) \
and (frame_length != collected_frames_len):
collected_frames_len -= 1
assert (collected_frames_len == frame_length), (