mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-06-21 23:39:35 +08:00
allow nodes with compatible min/max values to connect
This commit is contained in:
parent
4ad3849472
commit
f6e1a462b8
@ -375,7 +375,11 @@ app.registerExtension({
|
|||||||
|
|
||||||
for (const k in config1[1]) {
|
for (const k in config1[1]) {
|
||||||
if (k !== "default") {
|
if (k !== "default") {
|
||||||
if (config1[1][k] !== config2[1][k]) {
|
if(k == "min") {
|
||||||
|
if(config1[1][k] < config2[1][k]) return false;
|
||||||
|
} else if(k == "max") {
|
||||||
|
if(config1[1][k] > config2[1][k]) return false;
|
||||||
|
} else if (config1[1][k] !== config2[1][k]) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user