From 29a77e764a06666bdda770cf43facdf331b3d505 Mon Sep 17 00:00:00 2001 From: Austin Mroz Date: Wed, 12 Mar 2025 13:16:52 -0500 Subject: [PATCH] Support comma separated types with get/set nodes Resolves #221 --- web/js/setgetnodes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/js/setgetnodes.js b/web/js/setgetnodes.js index a8f8b8e..2a90dcc 100644 --- a/web/js/setgetnodes.js +++ b/web/js/setgetnodes.js @@ -449,7 +449,7 @@ app.registerExtension({ if (this.outputs[0].type !== '*' && this.outputs[0].links) { this.outputs[0].links.filter(linkId => { const link = node.graph.links[linkId]; - return link && (link.type !== this.outputs[0].type && link.type !== '*'); + return link && (!link.type.split(",").includes(this.outputs[0].type) && link.type !== '*'); }).forEach(linkId => { node.graph.removeLink(linkId); });