Fix T78932: fix linking reroute nodes of different type

Reviewers: mano-wii

Differential Revision: https://developer.blender.org/D8460
This commit is contained in:
Jacques Lucke 2020-08-04 17:36:25 +02:00
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;
}