From 197dba5b69865cb4d460c73721380d7e4ed4694d Mon Sep 17 00:00:00 2001 From: easonysliu Date: Thu, 9 Apr 2026 14:20:27 +0800 Subject: [PATCH] fix: respect capture_on_queue flag in WebcamCapture.IS_CHANGED When capture_on_queue is True, the node should always re-execute on each queue operation. Previously IS_CHANGED ignored this flag and always returned the file hash, causing the node to be skipped if the cached image hadn't changed on disk - defeating the purpose of the option. --- comfy_extras/nodes_webcam.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/comfy_extras/nodes_webcam.py b/comfy_extras/nodes_webcam.py index 6349ac017..ab25be641 100644 --- a/comfy_extras/nodes_webcam.py +++ b/comfy_extras/nodes_webcam.py @@ -26,6 +26,8 @@ class WebcamCapture(nodes.LoadImage): @classmethod def IS_CHANGED(cls, image, width, height, capture_on_queue): + if capture_on_queue: + return float("NaN") return super().IS_CHANGED(image)