Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/node_relationships.c
| Show First 20 Lines • Show All 460 Lines • ▼ Show 20 Lines | if (link) { | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if (tonode) { | if (tonode) { | ||||
| /* Find a selected socket that overrides the socket to connect to */ | /* Find a selected socket that overrides the socket to connect to */ | ||||
| for (bNodeSocket *sock2 = tonode->outputs.first; sock2; sock2 = sock2->next) { | LISTBASE_FOREACH (bNodeSocket *, sock2, &tonode->outputs) { | ||||
| if (!nodeSocketIsHidden(sock2) && sock2->flag & SELECT) { | if (!nodeSocketIsHidden(sock2) && sock2->flag & SELECT) { | ||||
| sock = sock2; | sock = sock2; | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /* find a socket starting from the first socket */ | /* find a socket starting from the first socket */ | ||||
| ▲ Show 20 Lines • Show All 1,497 Lines • Show Last 20 Lines | |||||