mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-28 15:20:25 +08:00
won't let me revert because it missed a file
This commit is contained in:
parent
d090a3f0b8
commit
a40c380f12
@ -167,6 +167,11 @@ app.registerExtension({
|
|||||||
const node = LiteGraph.createNode("PrimitiveNode");
|
const node = LiteGraph.createNode("PrimitiveNode");
|
||||||
app.graph.add(node);
|
app.graph.add(node);
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
|
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
|
// Calculate a position that wont directly overlap another node
|
||||||
const pos = [this.pos[0] - node.size[0] - 30, this.pos[1]];
|
const pos = [this.pos[0] - node.size[0] - 30, this.pos[1]];
|
||||||
while (isNodeAtPos(pos)) {
|
while (isNodeAtPos(pos)) {
|
||||||
@ -290,10 +295,19 @@ app.registerExtension({
|
|||||||
} else {
|
} else {
|
||||||
widget = this.addWidget(type, widgetName /*"value"*/, null, () => { }, {});
|
widget = this.addWidget(type, widgetName /*"value"*/, null, () => { }, {});
|
||||||
}
|
}
|
||||||
|
<<<<<<< HEAD
|
||||||
}
|
}
|
||||||
|
|
||||||
if (widget.type === "number") {
|
if (widget.type === "number") {
|
||||||
addSeedControlWidget(this, widget, "fixed seed");
|
addSeedControlWidget(this, widget, "fixed seed");
|
||||||
|
=======
|
||||||
|
|
||||||
|
// addSeedControlWidget(node, seed.widget, "randomize");
|
||||||
|
|
||||||
|
if (widget.type === "number") {
|
||||||
|
addSeedControlWidget(this, widget, "fixed seed");
|
||||||
|
}
|
||||||
|
>>>>>>> parent of ec3e40e (flyingshutter's code added, in working order)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (node?.widgets && widget) {
|
if (node?.widgets && widget) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user