Fix #122356: don't show link drag search for deprecated texture socket

This commit is contained in:
Jacques Lucke
2024-06-14 17:35:34 +02:00
parent a87907b425
commit f168ae73a8

View File

@@ -944,6 +944,10 @@ static bool should_create_drag_link_search_menu(const bNodeTree &node_tree,
if (nldrag.start_socket->type == SOCK_CUSTOM) {
return false;
}
if (nldrag.start_socket->type == SOCK_TEXTURE) {
/* This socket types is not used anymore, but can currently still exists in files. */
return false;
}
return true;
}