Fix T78080: group node has incorrect sockets after changing group

It was only checking for the identifier, but the type has to be equivalent as well.

Reviewers: mano-wii, brecht

Differential Revision: https://developer.blender.org/D8101
This commit is contained in:
Jacques Lucke 2020-06-24 16:53:46 +02:00
parent ff0df7c546
commit e761d0bdc9
Notes: blender-bot 2023-02-14 09:02:40 +01:00
Referenced by issue #78080, Nodegroups: Wrong input socket color
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ static bNodeSocket *group_verify_socket(
bNodeSocket *sock;
for (sock = verify_lb->first; sock; sock = sock->next) {
if (STREQ(sock->identifier, iosock->identifier)) {
if (sock->typeinfo == iosock->typeinfo && STREQ(sock->identifier, iosock->identifier)) {
break;
}
}