Support comma separated types with get/set nodes

Resolves #221
This commit is contained in:
Austin Mroz 2025-03-12 13:16:52 -05:00
parent 7ecb190ef9
commit 29a77e764a
No known key found for this signature in database

View File

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