1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 15:04:50 +08:00

Cleanup a few conditioning nodes.

This commit is contained in:
comfyanonymous
2024-04-07 14:27:40 -04:00
parent 0a03009808
commit 80bda6c163
2 changed files with 22 additions and 27 deletions

10
node_helpers.py Normal file
View File

@@ -0,0 +1,10 @@
def conditioning_set_values(conditioning, values={}):
c = []
for t in conditioning:
n = [t[0], t[1].copy()]
for k in values:
n[1][k] = values[k]
c.append(n)
return c