From f05fa5f23c2f72be5f09ec808e70d66a78a09b3a Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sun, 4 Jun 2023 12:01:48 +0900 Subject: [PATCH] robust patch for PreviewBridge --- impact_config.py | 2 +- impact_pack.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/impact_config.py b/impact_config.py index e7c89e0..b8947e7 100644 --- a/impact_config.py +++ b/impact_config.py @@ -1,7 +1,7 @@ import configparser import os -version = "V2.8.1" +version = "V2.8.2" dependency_version = 1 diff --git a/impact_pack.py b/impact_pack.py index a48690f..d527b7d 100644 --- a/impact_pack.py +++ b/impact_pack.py @@ -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)