robust patch for PreviewBridge

This commit is contained in:
Dr.Lt.Data
2023-06-04 12:01:48 +09:00
parent 68d971dc68
commit f05fa5f23c
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import configparser
import os
version = "V2.8.1"
version = "V2.8.2"
dependency_version = 1
+1 -3
View File
@@ -1217,10 +1217,8 @@ class PreviewBridge(nodes.PreviewImage):
CATEGORY = "ImpactPack/Util"
OUTPUT_NODE = True
def doit(self, images, image, filename_prefix="ComfyUI", prompt=None, extra_pnginfo=None):
if image == "#placeholder" or image['image_hash'] != id(images):
if image == "#placeholder" or image['image_hash'] != id(images) or ('0' in image and 'forward_filename' not in image[0]):
# new input image
res = self.save_images(images, filename_prefix, prompt, extra_pnginfo)