mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-13 23:04:40 +08:00
parent
7ecb190ef9
commit
29a77e764a
@ -449,7 +449,7 @@ app.registerExtension({
|
|||||||
if (this.outputs[0].type !== '*' && this.outputs[0].links) {
|
if (this.outputs[0].type !== '*' && this.outputs[0].links) {
|
||||||
this.outputs[0].links.filter(linkId => {
|
this.outputs[0].links.filter(linkId => {
|
||||||
const link = node.graph.links[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 => {
|
}).forEach(linkId => {
|
||||||
node.graph.removeLink(linkId);
|
node.graph.removeLink(linkId);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user