Fix node group socket order when making a group from a single node

This is a special case in the node group operator which exposes all the
sockets when only one node is selected. This was still creating sockets
in inputs..outputs order, unlike the general case with multiple nodes.

Followup fix for #112073

Pull Request: https://projects.blender.org/blender/blender/pulls/112226
This commit is contained in:
Lukas Tönne
2023-09-11 14:25:02 +02:00
parent a370acae0c
commit 6d5c52eb48

View File

@@ -1100,8 +1100,8 @@ static void node_group_make_insert_selected(const bContext &C,
}
}
};
expose_sockets(node->input_sockets());
expose_sockets(node->output_sockets());
expose_sockets(node->input_sockets());
}
}