don't remove the files but add to cleanup data

This commit is contained in:
Jakub Trllo 2022-03-24 12:11:19 +01:00
parent 62d7bcc0d0
commit 54b0e2ec9c

View file

@ -85,8 +85,9 @@ class ExtractConvertToEXR(pyblish.api.InstancePlugin):
if self.replace_pngs:
instance.data["representations"].remove(repre)
for filepath in src_filepaths:
os.remove(filepath)
instance.context.data["cleanupFullPaths"].append(filepath)
instance.data["representations"].extend(new_repres)
self.log.info(