OP-2049 - fix frame content for sequence starting with 0

Previously expression didn't trigger as repre.get("frameStart") returned 0 which translated into False
This commit is contained in:
Petr Kalis 2022-01-11 13:27:16 +01:00
parent 06a7f1accb
commit 100ff46421

View file

@ -580,7 +580,7 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
if repre.get("outputName"):
representation["context"]["output"] = repre['outputName']
if sequence_repre and repre.get("frameStart"):
if sequence_repre and repre.get("frameStart") is not None:
representation['context']['frame'] = (
dst_padding_exp % int(repre.get("frameStart"))
)