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