Skip to content

Commit

Permalink
Fix an error when graphs return to unchanged state
Browse files Browse the repository at this point in the history
  • Loading branch information
guill committed Sep 1, 2024
1 parent b92f876 commit d470985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comfy_execution/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d470985

Please sign in to comment.