Skip to content

Commit 580f987

Browse files
committed
Updated to append node postfix to dynamically generated nodes
1 parent 93d0159 commit 580f987

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

flow_control.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def for_loop_open(self, remaining, **kwargs):
206206
graph = GraphBuilder()
207207
if "initial_value0" in kwargs:
208208
remaining = kwargs["initial_value0"]
209-
while_open = graph.node("WhileLoopOpen", condition=remaining, initial_value0=remaining, **{("initial_value%d" % i): kwargs.get("initial_value%d" % i, None) for i in range(1, NUM_FLOW_SOCKETS)})
209+
while_open = graph.node(f"WhileLoopOpen{NODE_POSTFIX}", condition=remaining, initial_value0=remaining, **{("initial_value%d" % i): kwargs.get("initial_value%d" % i, None) for i in range(1, NUM_FLOW_SOCKETS)})
210210
outputs = [kwargs.get("initial_value%d" % i, None) for i in range(1, NUM_FLOW_SOCKETS)]
211211
return {
212212
"result": tuple(["stub", remaining] + outputs),
@@ -239,10 +239,10 @@ def for_loop_close(self, flow_control, **kwargs):
239239
while_open = flow_control[0]
240240

241241
# Use our internal counter node instead of external dependencies
242-
counter = graph.node("_ForLoopCounter", current_value=[while_open, 1])
242+
counter = graph.node(f"_ForLoopCounter{NODE_POSTFIX}", current_value=[while_open, 1])
243243

244244
input_values = {("initial_value%d" % i): kwargs.get("initial_value%d" % i, None) for i in range(1, NUM_FLOW_SOCKETS)}
245-
while_close = graph.node("WhileLoopClose",
245+
while_close = graph.node(f"WhileLoopClose{NODE_POSTFIX}",
246246
flow_control=flow_control,
247247
condition=counter.out(1), # should_continue output
248248
initial_value0=counter.out(0), # decremented output

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "comfyui-deforum"
33
description = "Custom nodes for deforum workflows"
4-
version = "0.4.0"
4+
version = "0.4.1"
55
license = { file = "LICENSE.txt" }
66

77
[project.urls]

0 commit comments

Comments
 (0)