Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/intern/geometry_nodes_log.cc
| Show First 20 Lines • Show All 386 Lines • ▼ Show 20 Lines | if (socket.is_input()) { | ||||
| const Span<const bNodeLink *> links = socket.directly_linked_links(); | const Span<const bNodeLink *> links = socket.directly_linked_links(); | ||||
| for (const bNodeLink *link : links) { | for (const bNodeLink *link : links) { | ||||
| const bNodeSocket &from_socket = *link->fromsock; | const bNodeSocket &from_socket = *link->fromsock; | ||||
| if (added_sockets.add(&from_socket)) { | if (added_sockets.add(&from_socket)) { | ||||
| sockets_to_check.push(&from_socket); | sockets_to_check.push(&from_socket); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| else { | else if (node.is_reroute()) { | ||||
| if (node.is_reroute()) { | |||||
| const bNodeSocket &input_socket = node.input_socket(0); | const bNodeSocket &input_socket = node.input_socket(0); | ||||
| if (added_sockets.add(&input_socket)) { | if (added_sockets.add(&input_socket)) { | ||||
| sockets_to_check.push(&input_socket); | sockets_to_check.push(&input_socket); | ||||
| } | } | ||||
| const Span<const bNodeLink *> links = input_socket.directly_linked_links(); | const Span<const bNodeLink *> links = input_socket.directly_linked_links(); | ||||
| for (const bNodeLink *link : links) { | for (const bNodeLink *link : links) { | ||||
| const bNodeSocket &from_socket = *link->fromsock; | const bNodeSocket &from_socket = *link->fromsock; | ||||
| if (added_sockets.add(&from_socket)) { | if (added_sockets.add(&from_socket)) { | ||||
| sockets_to_check.push(&from_socket); | sockets_to_check.push(&from_socket); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| else if (node.is_muted()) { | else if (node.is_muted()) { | ||||
| if (const bNodeSocket *input_socket = socket.internal_link_input()) { | if (const bNodeSocket *input_socket = socket.internal_link_input()) { | ||||
| if (added_sockets.add(input_socket)) { | if (added_sockets.add(input_socket)) { | ||||
| sockets_to_check.push(input_socket); | sockets_to_check.push(input_socket); | ||||
| } | } | ||||
| const Span<const bNodeLink *> links = input_socket->directly_linked_links(); | const Span<const bNodeLink *> links = input_socket->directly_linked_links(); | ||||
| for (const bNodeLink *link : links) { | for (const bNodeLink *link : links) { | ||||
| const bNodeSocket &from_socket = *link->fromsock; | const bNodeSocket &from_socket = *link->fromsock; | ||||
| if (added_sockets.add(&from_socket)) { | if (added_sockets.add(&from_socket)) { | ||||
| sockets_to_check.push(&from_socket); | sockets_to_check.push(&from_socket); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | |||||
| return nullptr; | return nullptr; | ||||
| } | } | ||||
| GeoTreeLogger &GeoModifierLog::get_local_tree_logger(const ComputeContext &compute_context) | GeoTreeLogger &GeoModifierLog::get_local_tree_logger(const ComputeContext &compute_context) | ||||
| { | { | ||||
| LocalData &local_data = data_per_thread_.local(); | LocalData &local_data = data_per_thread_.local(); | ||||
| Map<ComputeContextHash, destruct_ptr<GeoTreeLogger>> &local_tree_loggers = | Map<ComputeContextHash, destruct_ptr<GeoTreeLogger>> &local_tree_loggers = | ||||
| ▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines | |||||