mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-27 23:00:20 +08:00
flyingshutter's code added, in working order
This commit is contained in:
parent
5dcbadea0c
commit
ec3e40e82d
@ -167,7 +167,7 @@ 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");
|
//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]];
|
||||||
@ -294,10 +294,11 @@ app.registerExtension({
|
|||||||
}
|
}
|
||||||
|
|
||||||
// addSeedControlWidget(node, seed.widget, "randomize");
|
// 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) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user