Merge pull request #4029 from pypeclub/bugfix/standalone_publisher_thumbnail_publishing

StandalonePublisher: Fix thumbnail publishing
This commit is contained in:
Jakub Trllo 2022-10-26 12:39:28 +02:00 committed by GitHub
commit 579db01314
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -118,6 +118,7 @@ class ExtractThumbnailSP(pyblish.api.InstancePlugin):
'files': filename,
"stagingDir": staging_dir,
"tags": ["thumbnail", "delete"],
"thumbnail": True
}
if width and height:
representation["width"] = width

View file

@ -151,7 +151,7 @@ class IntegrateFtrackInstance(pyblish.api.InstancePlugin):
first_thumbnail_component = None
first_thumbnail_component_repre = None
if has_movie_review:
if not review_representations or has_movie_review:
for repre in thumbnail_representations:
repre_path = self._get_repre_path(instance, repre, False)
if not repre_path: