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");
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;

View File

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