Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/intern/derived_node_tree.cc
| Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| BLI_assert(*this); | BLI_assert(*this); | ||||
| BLI_assert(bsocket_->owner_node().is_group()); | BLI_assert(bsocket_->owner_node().is_group()); | ||||
| const DTreeContext *child_context = context_->child_context(bsocket_->owner_node()); | const DTreeContext *child_context = context_->child_context(bsocket_->owner_node()); | ||||
| BLI_assert(child_context != nullptr); | BLI_assert(child_context != nullptr); | ||||
| const bNodeTree &child_tree = child_context->btree(); | const bNodeTree &child_tree = child_context->btree(); | ||||
| Span<const bNode *> group_input_nodes = child_tree.nodes_by_type("NodeGroupInput"); | Span<const bNode *> group_input_nodes = child_tree.group_input_nodes(); | ||||
| const int socket_index = bsocket_->index(); | const int socket_index = bsocket_->index(); | ||||
| Vector<DOutputSocket> sockets; | Vector<DOutputSocket> sockets; | ||||
| for (const bNode *group_input_node : group_input_nodes) { | for (const bNode *group_input_node : group_input_nodes) { | ||||
| sockets.append(DOutputSocket(child_context, &group_input_node->output_socket(socket_index))); | sockets.append(DOutputSocket(child_context, &group_input_node->output_socket(socket_index))); | ||||
| } | } | ||||
| return sockets; | return sockets; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 286 Lines • Show Last 20 Lines | |||||