Fixes thumbnail creation logic

Moves the `thumbnail_created` flag initialization inside the loop.

This ensures that the flag is reset for each representation, preventing it from being incorrectly skipped if a previous representation failed to create a thumbnail.
This commit is contained in:
Jakub Jezek 2025-04-14 15:42:12 +02:00
parent 8205ee8b27
commit f770a35d54
No known key found for this signature in database
GPG key ID: 06DBD609ADF27FD9

View file

@ -163,9 +163,9 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
# Store new staging to cleanup paths
instance.context.data["cleanupFullPaths"].append(dst_staging)
thumbnail_created = False
oiio_supported = is_oiio_supported()
for repre in filtered_repres:
thumbnail_created = False
repre_files = repre["files"]
src_staging = os.path.normpath(repre["stagingDir"])
if not isinstance(repre_files, (list, tuple)):