mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-27 23:00:20 +08:00
primitive node title fix
This commit is contained in:
parent
8100f631fc
commit
0b08c654f3
@ -266,9 +266,9 @@ app.registerExtension({
|
|||||||
|
|
||||||
if (widget.name === "seed") {
|
if (widget.name === "seed") {
|
||||||
const seed = this.#createWidget(widget.config, theirNode, widget.name);
|
const seed = this.#createWidget(widget.config, theirNode, widget.name);
|
||||||
addSeedControlWidget(this, seed, "randomize");
|
const seedControl = addSeedControlWidget(this, seed, "randomize");
|
||||||
//const seedControl = addSeedControlWidget(this, seed, "randomize");
|
//this.widgets[0].link = [seedControl];//tried using all different links, not just link
|
||||||
//seed.link = [seedControl];//tried using all different links, not just link
|
this.title = "seed";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
this.#createWidget(widget.config, theirNode, widget.name);
|
this.#createWidget(widget.config, theirNode, widget.name);
|
||||||
@ -292,7 +292,7 @@ app.registerExtension({
|
|||||||
|
|
||||||
if (node?.widgets && widget) {
|
if (node?.widgets && widget) {
|
||||||
|
|
||||||
const theirWidget = node.widgets.find((w) => w.name === widgetName);
|
const theirWidget = node.widgets.find((w) => w.name === widgetName);
|
||||||
if (theirWidget) {
|
if (theirWidget) {
|
||||||
widget.value = theirWidget.value;
|
widget.value = theirWidget.value;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user