From cf5e63c85b41cb6224e14211c4d3ace7451e4ccd Mon Sep 17 00:00:00 2001 From: Acly Date: Tue, 29 Aug 2023 11:54:05 +0200 Subject: [PATCH] Fixed missing client_id --- nodes.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nodes.py b/nodes.py index ef6169e..5b3e2a7 100644 --- a/nodes.py +++ b/nodes.py @@ -65,8 +65,11 @@ class SendImageWebSocket: array = 255.0 * tensor.cpu().numpy() image = Image.fromarray(np.clip(array, 0, 255).astype(np.uint8)) - PromptServer.instance.send_sync( - BinaryEventTypes.UNENCODED_PREVIEW_IMAGE, ["PNG", image, None] + server = PromptServer.instance + server.send_sync( + BinaryEventTypes.UNENCODED_PREVIEW_IMAGE, + ["PNG", image, None], + server.client_id, ) results.append( # Could put some kind of ID here, but for now just match them by index