avoid situation where missing outputName

this might happen if only one Intermediate reviewable file stream is used.
This commit is contained in:
Jakub Jezek 2023-11-22 14:52:11 +01:00
parent 9b1d24acb8
commit 2aea1cd8fc
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -180,7 +180,8 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
if explicit_repres:
# this key will then align assetVersion ftrack thumbnail sync
new_repre["outputName"] = repre["outputName"]
new_repre["outputName"] = (
repre.get("outputName") or repre["name"])
self.log.debug(
"Adding explicit thumbnail representation: {}".format(
new_repre))