Fix #112333: assert when creating node group with unavailable link
This commit is contained in:
@@ -1036,6 +1036,9 @@ static void node_group_make_insert_selected(const bContext &C,
|
||||
for (bNode *node : nodes_to_move) {
|
||||
for (bNodeSocket *output_socket : node->output_sockets()) {
|
||||
if (!output_socket->is_available() || output_socket->is_hidden()) {
|
||||
for (bNodeLink *link : output_socket->directly_linked_links()) {
|
||||
links_to_remove.add(link);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -1074,6 +1077,9 @@ static void node_group_make_insert_selected(const bContext &C,
|
||||
for (bNode *node : nodes_to_move) {
|
||||
for (bNodeSocket *input_socket : node->input_sockets()) {
|
||||
if (!input_socket->is_available() || input_socket->is_hidden()) {
|
||||
for (bNodeLink *link : input_socket->directly_linked_links()) {
|
||||
links_to_remove.add(link);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user