mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-04-14 20:42:31 +08:00
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.
This commit is contained in:
parent
4b97d167f1
commit
197dba5b69
@ -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)
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user