Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/node_group.c
| Context not available. | |||||
| ListBase anim_basepaths = {NULL, NULL}; | ListBase anim_basepaths = {NULL, NULL}; | ||||
| float min[2], max[2], center[2]; | float min[2], max[2], center[2]; | ||||
| int totselect; | int totselect; | ||||
| bool expose_all = false; | bool expose_visible = false; | ||||
| bNode *input_node, *output_node; | bNode *input_node, *output_node; | ||||
| /* XXX rough guess, not nice but we don't have access to UI constants here ... */ | /* XXX rough guess, not nice but we don't have access to UI constants here ... */ | ||||
| Context not available. | |||||
| /* auto-add interface for "solo" nodes */ | /* auto-add interface for "solo" nodes */ | ||||
| if (totselect == 1) { | if (totselect == 1) { | ||||
| expose_all = true; | expose_visible = true; | ||||
| } | } | ||||
| /* move nodes over */ | /* move nodes over */ | ||||
| Context not available. | |||||
| } | } | ||||
| } | } | ||||
| /* expose all unlinked sockets too */ | /* expose all unlinked sockets too but only the visible ones*/ | ||||
| if (expose_all) { | if (expose_visible) { | ||||
| for (node = ngroup->nodes.first; node; node = node->next) { | for (node = ngroup->nodes.first; node; node = node->next) { | ||||
| if (node_group_make_use_node(node, gnode)) { | if (node_group_make_use_node(node, gnode)) { | ||||
| for (sock = node->inputs.first; sock; sock = sock->next) { | for (sock = node->inputs.first; sock; sock = sock->next) { | ||||
| Context not available. | |||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| if (sock->flag & (SOCK_HIDDEN | SOCK_UNAVAIL)) { | |||||
| skip = true; | |||||
| } | |||||
| if (skip) { | if (skip) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| Context not available. | |||||
| skip = true; | skip = true; | ||||
| } | } | ||||
| } | } | ||||
| if (sock->flag & (SOCK_HIDDEN | SOCK_UNAVAIL)) { | |||||
| skip = true; | |||||
| } | |||||
| if (skip) { | if (skip) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| Context not available. | |||||