Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/NOD_node_tree_multi_function.hh
| Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | void add(const DOutputSocket &dsocket, fn::MFOutputSocket &socket) | ||||
| sockets_by_dsocket_.add(dsocket, &socket); | sockets_by_dsocket_.add(dsocket, &socket); | ||||
| } | } | ||||
| void add(const DTreeContext &context, | void add(const DTreeContext &context, | ||||
| Span<const InputSocketRef *> dsockets, | Span<const InputSocketRef *> dsockets, | ||||
| Span<fn::MFInputSocket *> sockets) | Span<fn::MFInputSocket *> sockets) | ||||
| { | { | ||||
| assert_same_size(dsockets, sockets); | assert_same_size(dsockets, sockets); | ||||
| for (int i : dsockets.index_range()) { | for (int i : iter_indices(dsockets)) { | ||||
| this->add(DInputSocket(&context, dsockets[i]), *sockets[i]); | this->add(DInputSocket(&context, dsockets[i]), *sockets[i]); | ||||
| } | } | ||||
| } | } | ||||
| void add(const DTreeContext &context, | void add(const DTreeContext &context, | ||||
| Span<const OutputSocketRef *> dsockets, | Span<const OutputSocketRef *> dsockets, | ||||
| Span<fn::MFOutputSocket *> sockets) | Span<fn::MFOutputSocket *> sockets) | ||||
| { | { | ||||
| assert_same_size(dsockets, sockets); | assert_same_size(dsockets, sockets); | ||||
| for (int i : dsockets.index_range()) { | for (int i : iter_indices(dsockets)) { | ||||
| this->add(DOutputSocket(&context, dsockets[i]), *sockets[i]); | this->add(DOutputSocket(&context, dsockets[i]), *sockets[i]); | ||||
| } | } | ||||
| } | } | ||||
| void add_try_match(const DNode &dnode, fn::MFNode &node) | void add_try_match(const DNode &dnode, fn::MFNode &node) | ||||
| { | { | ||||
| this->add_try_match(*dnode.context(), | this->add_try_match(*dnode.context(), | ||||
| dnode->inputs().cast<const SocketRef *>(), | dnode->inputs().cast<const SocketRef *>(), | ||||
| ▲ Show 20 Lines • Show All 274 Lines • Show Last 20 Lines | |||||