mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-28 07:10:15 +08:00
archiving changes
This commit is contained in:
parent
33d301ba74
commit
d090a3f0b8
@ -167,8 +167,6 @@ app.registerExtension({
|
|||||||
const node = LiteGraph.createNode("PrimitiveNode");
|
const node = LiteGraph.createNode("PrimitiveNode");
|
||||||
app.graph.add(node);
|
app.graph.add(node);
|
||||||
|
|
||||||
//node.widgets.addSeedControlWidget(node,node.widgets[0],"randomize");
|
|
||||||
|
|
||||||
// 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)) {
|
||||||
@ -292,13 +290,10 @@ app.registerExtension({
|
|||||||
} else {
|
} else {
|
||||||
widget = this.addWidget(type, widgetName /*"value"*/, null, () => { }, {});
|
widget = this.addWidget(type, widgetName /*"value"*/, null, () => { }, {});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// addSeedControlWidget(node, seed.widget, "randomize");
|
|
||||||
/*
|
if (widget.type === "number") {
|
||||||
if (widget.type === "number") {
|
addSeedControlWidget(this, widget, "fixed seed");
|
||||||
addSeedControlWidget(this, widget, "fixed seed");
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (node?.widgets && widget) {
|
if (node?.widgets && widget) {
|
||||||
@ -309,6 +304,7 @@ app.registerExtension({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// When our value changes, update other widgets to reflect our changes
|
// When our value changes, update other widgets to reflect our changes
|
||||||
// e.g. so LoadImage shows correct image
|
// e.g. so LoadImage shows correct image
|
||||||
const callback = widget.callback;
|
const callback = widget.callback;
|
||||||
|
|||||||
@ -832,7 +832,6 @@ class ComfyApp {
|
|||||||
if (widget.value == true) {
|
if (widget.value == true) {
|
||||||
widget.value = "randomize";
|
widget.value = "randomize";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user