set seedControl to fexed seed for non seed numbers

This commit is contained in:
flyingshutter 2023-03-31 23:58:09 +02:00
parent 540cf3f113
commit 4661163a82
2 changed files with 2 additions and 2 deletions

View File

@ -294,7 +294,7 @@ app.registerExtension({
// addSeedControlWidget(node, seed.widget, "randomize");
if (widget.type === "number") {
addSeedControlWidget(this, widget, "randomize");
addSeedControlWidget(this, widget, "fixed seed");
}
}

View File

@ -11,7 +11,7 @@ function getNumberDefaults(inputData, defaultStep) {
}
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"],
serialize: false, // Don't include this in prompt.
})