Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/intern/socket_search_link.cc
| Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | |||||
| void search_link_ops_for_basic_node(GatherLinkSearchOpParams ¶ms) | void search_link_ops_for_basic_node(GatherLinkSearchOpParams ¶ms) | ||||
| { | { | ||||
| const bNodeType &node_type = params.node_type(); | const bNodeType &node_type = params.node_type(); | ||||
| if (!node_type.declare) { | if (!node_type.declare) { | ||||
| return; | return; | ||||
| } | } | ||||
| if (node_type.declaration_is_dynamic) { | if (node_type.declare_dynamic) { | ||||
| /* Dynamic declarations (whatever they end up being) aren't supported | /* Dynamic declarations aren't supported here, but avoid crashing in release builds. */ | ||||
| * by this function, but still avoid a crash in release builds. */ | |||||
| BLI_assert_unreachable(); | BLI_assert_unreachable(); | ||||
| return; | return; | ||||
| } | } | ||||
| const NodeDeclaration &declaration = *node_type.fixed_declaration; | const NodeDeclaration &declaration = *node_type.fixed_declaration; | ||||
| search_link_ops_for_declarations(params, declaration.sockets(params.in_out())); | search_link_ops_for_declarations(params, declaration.sockets(params.in_out())); | ||||
| } | } | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||