diff --git a/source/blender/editors/space_node/drawnode.cc b/source/blender/editors/space_node/drawnode.cc index bce6ba535d0..9e7ec8c42c5 100644 --- a/source/blender/editors/space_node/drawnode.cc +++ b/source/blender/editors/space_node/drawnode.cc @@ -1284,14 +1284,18 @@ static void node_file_output_socket_draw(bContext *C, static bool socket_needs_attribute_search(bNode &node, bNodeSocket &socket) { - if (node.runtime->declaration == nullptr) { + const nodes::NodeDeclaration *node_decl = node.declaration(); + if (node_decl == nullptr) { + return false; + } + if (node_decl->skip_updating_sockets) { return false; } if (socket.in_out == SOCK_OUT) { return false; } const int socket_index = BLI_findindex(&node.inputs, &socket); - return node.declaration()->inputs[socket_index]->is_attribute_name; + return node_decl->inputs[socket_index]->is_attribute_name; } static void std_node_socket_draw(