Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/intern/node_common.c
| Show First 20 Lines • Show All 119 Lines • ▼ Show 20 Lines | |||||
| /* used for both group nodes and interface nodes */ | /* used for both group nodes and interface nodes */ | ||||
| static bNodeSocket *group_verify_socket( | static bNodeSocket *group_verify_socket( | ||||
| bNodeTree *ntree, bNode *gnode, bNodeSocket *iosock, ListBase *verify_lb, int in_out) | bNodeTree *ntree, bNode *gnode, bNodeSocket *iosock, ListBase *verify_lb, int in_out) | ||||
| { | { | ||||
| bNodeSocket *sock; | bNodeSocket *sock; | ||||
| for (sock = verify_lb->first; sock; sock = sock->next) { | 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; | break; | ||||
| } | } | ||||
| } | } | ||||
| if (sock) { | if (sock) { | ||||
| strcpy(sock->name, iosock->name); | strcpy(sock->name, iosock->name); | ||||
| if (iosock->typeinfo->interface_verify_socket) { | if (iosock->typeinfo->interface_verify_socket) { | ||||
| iosock->typeinfo->interface_verify_socket(ntree, iosock, gnode, sock, "interface"); | iosock->typeinfo->interface_verify_socket(ntree, iosock, gnode, sock, "interface"); | ||||
| ▲ Show 20 Lines • Show All 464 Lines • Show Last 20 Lines | |||||