allows connect primitive node to reroute if primitive node has type (#751)

Co-authored-by: Lt.Dr.Data <lt.dr.data@gmail.com>
This commit is contained in:
Dr.Lt.Data 2023-06-09 15:21:30 +09:00 committed by GitHub
parent 8b82f79cb2
commit 8e14c46a38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -240,6 +240,7 @@ app.registerExtension({
// No widget, we cant connect
if (!input.widget) {
if (this.outputs[0]?.type != '*' && target_node.type == "Reroute") return true;
if (!(input.type in ComfyWidgets)) return false;
}