1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-03 07:26:31 +08:00

Changed how a node class is cloned and locked for execution, added EXECUTE_NORMALIZED to wrap around execute function so that a NodeOutput is always returned

This commit is contained in:
kosinkadink1@gmail.com
2025-07-14 02:55:07 -05:00
parent 139025f0fd
commit c9e03684d6
3 changed files with 82 additions and 11 deletions

View File

@@ -104,7 +104,10 @@ class V3TestNode(io.ComfyNodeV3):
raise Exception("The 'cls' variable leaked instance state between runs!")
if hasattr(cls, "doohickey"):
raise Exception("The 'cls' variable leaked state on class properties between runs!")
cls.doohickey = "LOLJK"
try:
cls.doohickey = "LOLJK"
except AttributeError:
pass
return io.NodeOutput(some_int, image, ui=ui.PreviewImage(image, cls=cls))