Fix T78932: fix linking reroute nodes of different type
Reviewers: mano-wii Differential Revision: https://developer.blender.org/D8460
This commit is contained in:
parent
a4a814a180
commit
e818f1274b
@ -251,6 +251,12 @@ static bNodeSocket *best_socket_output(bNodeTree *ntree,
|
||||
}
|
||||
}
|
||||
|
||||
/* Always allow linking to an reroute node. The socket type of the reroute sockets might change
|
||||
* after the link has been created. */
|
||||
if (node->type == NODE_REROUTE) {
|
||||
return node->outputs.first;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user