archiving changes

This commit is contained in:
FizzleDorf 2023-04-01 13:16:25 -04:00
parent 33d301ba74
commit d090a3f0b8
2 changed files with 5 additions and 10 deletions

View File

@ -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;

View File

@ -832,7 +832,6 @@ class ComfyApp {
if (widget.value == true) { if (widget.value == true) {
widget.value = "randomize"; widget.value = "randomize";
} }
} }
} }
} }