mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-09 13:02:31 +08:00
randomize is now default, seedControls are visible so long as seed is a widget
This commit is contained in:
parent
381976611c
commit
0575532c60
@ -287,7 +287,7 @@ app.registerExtension({
|
|||||||
widget.value = theirWidget.value;
|
widget.value = theirWidget.value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (widget.type === "combo") {
|
if (widget.type === "combo") {
|
||||||
addSeedControlWidget(this, widget, "randomize");
|
addSeedControlWidget(this, widget, "randomize");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -771,7 +771,7 @@ class ComfyApp {
|
|||||||
widget.value = widget.value.slice(7);
|
widget.value = widget.value.slice(7);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (widget.name == "seed control after generating") {
|
if (widget.name == "seed control after generating") {
|
||||||
if (widget.value == true) {
|
if (widget.value == true) {
|
||||||
widget.value = "randomize";
|
widget.value = "randomize";
|
||||||
|
|||||||
@ -50,7 +50,7 @@ export function addSeedControlWidget(node, targetWidget, defaultValue = "randomi
|
|||||||
console.log("default (fail)");
|
console.log("default (fail)");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return seedControl;
|
return seedControl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user