Merge pull request #222 from AustinMroz/main

Support comma separated types with get/set nodes
This commit is contained in:
Jukka Seppänen 2025-03-12 22:04:34 +02:00 committed by GitHub
commit 46f9ec2c24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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