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:
easonysliu 2026-04-09 14:20:27 +08:00
parent 4b97d167f1
commit 197dba5b69

View File

@ -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)