mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-27 23:00:20 +08:00
seedControls now appears for all number parameters when converted into a primitive node.
This commit is contained in:
parent
f6796a5d48
commit
27d0a8ddf6
@ -167,14 +167,6 @@ app.registerExtension({
|
||||
const node = LiteGraph.createNode("PrimitiveNode");
|
||||
app.graph.add(node);
|
||||
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
=======
|
||||
>>>>>>> parent of ec3e40e (flyingshutter's code added, in working order)
|
||||
node.widgets.addSeedControlWidget(node,node.widgets[0],"randomize");
|
||||
|
||||
>>>>>>> parent of ec3e40e (flyingshutter's code added, in working order)
|
||||
// Calculate a position that wont directly overlap another node
|
||||
const pos = [this.pos[0] - node.size[0] - 30, this.pos[1]];
|
||||
while (isNodeAtPos(pos)) {
|
||||
@ -298,23 +290,13 @@ app.registerExtension({
|
||||
} else {
|
||||
widget = this.addWidget(type, widgetName /*"value"*/, null, () => { }, {});
|
||||
}
|
||||
<<<<<<< HEAD
|
||||
}
|
||||
|
||||
if (widget.type === "number") {
|
||||
if (widget.type === "number" && widget.name != "seed") {
|
||||
addSeedControlWidget(this, widget, "fixed seed");
|
||||
=======
|
||||
|
||||
// addSeedControlWidget(node, seed.widget, "randomize");
|
||||
|
||||
if (widget.type === "number") {
|
||||
addSeedControlWidget(this, widget, "fixed seed");
|
||||
}
|
||||
<<<<<<< HEAD
|
||||
>>>>>>> parent of ec3e40e (flyingshutter's code added, in working order)
|
||||
=======
|
||||
>>>>>>> parent of ec3e40e (flyingshutter's code added, in working order)
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (node?.widgets && widget) {
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user