From d470985fffc5bdb3186b009a9eecb4aa55f83f52 Mon Sep 17 00:00:00 2001 From: Jacob Segal Date: Sun, 1 Sep 2024 16:57:24 -0700 Subject: [PATCH] Fix an error when graphs return to unchanged state --- comfy_execution/graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy_execution/graph.py b/comfy_execution/graph.py index 93e83718c91e..65f4c7235538 100644 --- a/comfy_execution/graph.py +++ b/comfy_execution/graph.py @@ -183,9 +183,9 @@ def resolve_dynamic_definitions(self, node_id_set: Set[str]): ) old_info = self.definitions[node_id].copy() self.definitions[node_id].update(dynamic_info) + updated[node_id] = self.definitions[node_id] # We changed the info, so we potentially need to resolve adjacent and entangled nodes if old_info != self.definitions[node_id]: - updated[node_id] = self.definitions[node_id] for (entangled_node_id, _) in entangled.get(node_id, []): if entangled_node_id in node_id_set: to_resolve.add(entangled_node_id)