primitive node title fix

This commit is contained in:
FizzleDorf 2023-03-31 14:57:03 -04:00
parent 8100f631fc
commit 0b08c654f3

View File

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