From c98010992014c71a030b56e47f30a11727c806cf Mon Sep 17 00:00:00 2001 From: illua1 Date: Thu, 4 May 2023 19:57:38 +0300 Subject: [PATCH] init --- .../blender/editors/space_node/node_relationships.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/source/blender/editors/space_node/node_relationships.cc b/source/blender/editors/space_node/node_relationships.cc index dd4de20fb82..bd6d0594e6c 100644 --- a/source/blender/editors/space_node/node_relationships.cc +++ b/source/blender/editors/space_node/node_relationships.cc @@ -802,12 +802,10 @@ static bool should_create_drag_link_search_menu(const bNodeTree &node_tree, if (nldrag.start_socket->in_out == SOCK_IN && nldrag.start_link_count > 0) { return false; } - /* Don't allow a drag from the "new socket" of a group input node. Handling these - * properly in node callbacks increases the complexity too much for now. */ - if (ELEM(nldrag.start_node->type, NODE_GROUP_INPUT, NODE_GROUP_OUTPUT)) { - if (nldrag.start_socket->type == SOCK_CUSTOM) { - return false; - } + /* Don't allow a drag from the "new socket" (group input node or simulation nodes currently). + * Handling these properly in node callbacks increases the complexity too much for now. */ + if (nldrag.start_socket->type == SOCK_CUSTOM) { + return false; } return true; } -- 2.30.2