mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-28 07:10:15 +08:00
set seedControl to fexed seed for non seed numbers
This commit is contained in:
parent
540cf3f113
commit
4661163a82
@ -294,7 +294,7 @@ app.registerExtension({
|
|||||||
// addSeedControlWidget(node, seed.widget, "randomize");
|
// addSeedControlWidget(node, seed.widget, "randomize");
|
||||||
|
|
||||||
if (widget.type === "number") {
|
if (widget.type === "number") {
|
||||||
addSeedControlWidget(this, widget, "randomize");
|
addSeedControlWidget(this, widget, "fixed seed");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,7 @@ function getNumberDefaults(inputData, defaultStep) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function addSeedControlWidget(node, targetWidget, defaultValue = "randomize", values) {
|
export function addSeedControlWidget(node, targetWidget, defaultValue = "randomize", values) {
|
||||||
const seedControl = node.addWidget("combo", "seed control after generating", "randomize", function (v) { }, {
|
const seedControl = node.addWidget("combo", "seed control after generating", defaultValue, function (v) { }, {
|
||||||
values: ["fixed seed", "increment", "decrement", "randomize"],
|
values: ["fixed seed", "increment", "decrement", "randomize"],
|
||||||
serialize: false, // Don't include this in prompt.
|
serialize: false, // Don't include this in prompt.
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user