tried linking, no luck

This commit is contained in:
FizzleDorf 2023-03-31 13:40:19 -04:00
parent 03502bc9ad
commit e47e2c2e9c

View File

@ -263,21 +263,14 @@ app.registerExtension({
this.outputs[0].type = linkType; this.outputs[0].type = linkType;
this.outputs[0].name = type; this.outputs[0].name = type;
this.outputs[0].widget = widget; this.outputs[0].widget = widget;
/*
if (widget.name == "seed") {
widget = seedWidget(node, inputName, inputData);
} else {
}
*/
this.#createWidget(widget.config, theirNode, widget.name);
if (widget.name === "seed") { if (widget.name === "seed") {
addSeedControlWidget(this, this.widget, "randomize"); const seed = this.#createWidget(widget.config, theirNode, widget.name);
const seedControl = addSeedControlWidget(this, seed, "randomize");
seed.link = [seedControl];
} }
else
this.#createWidget(widget.config, theirNode, widget.name);
} }
#createWidget(inputData, node, widgetName) { #createWidget(inputData, node, widgetName) {