Fix: Nodes: reroute nodes should always use circle shape

This was accidentally changed before when the new socket shape
inferencing was introduced.
This commit is contained in:
Jacques Lucke
2025-09-27 23:02:13 +02:00
parent 056dafffb3
commit 3338e7d70e

View File

@@ -973,6 +973,11 @@ class NodeTreeMainUpdater {
const bke::bNodeZoneType *closure_zone_type = bke::zone_type_by_node_type(
NODE_CLOSURE_OUTPUT);
switch (node->type_legacy) {
case NODE_REROUTE: {
node->input_socket(0).display_shape = SOCK_DISPLAY_SHAPE_CIRCLE;
node->output_socket(0).display_shape = SOCK_DISPLAY_SHAPE_CIRCLE;
break;
}
case NODE_GROUP_OUTPUT:
case NODE_GROUP_INPUT: {
for (bNodeSocket *socket : node->input_sockets()) {