delete temp thumbnail file

This commit is contained in:
Milan Kolar 2020-10-14 16:24:32 +02:00
parent 38c37d9cf5
commit 680d4fab34

View file

@ -112,12 +112,11 @@ class ExtractThumbnailSP(pyblish.api.InstancePlugin):
'ext': 'jpg',
'files': filename,
"stagingDir": staging_dir,
"thumbnail": True,
"tags": []
"tags": ["thumbnail"],
}
# # add Delete tag when temp file was rendered
# if not is_jpeg:
# representation["tags"].append("delete")
if not is_jpeg:
representation["tags"].append("delete")
instance.data["representations"].append(representation)