Fix: Realize instances versioning fails for curve to mesh node

It assumed that the last input socket was a geometry socket, but now
it is the fill caps boolean option.
This commit is contained in:
Hans Goudey 2021-10-27 10:24:29 -05:00
parent 87470169e0
commit defc1b8e18
1 changed files with 1 additions and 1 deletions

View File

@ -535,7 +535,7 @@ static void version_geometry_nodes_add_realize_instance_nodes(bNodeTree *ntree)
}
/* Also realize instances for the profile input of the curve to mesh node. */
if (node->type == GEO_NODE_CURVE_TO_MESH) {
bNodeSocket *profile_socket = node->inputs.last;
bNodeSocket *profile_socket = (bNodeSocket *)BLI_findlink(&node->inputs, 1);
add_realize_instances_before_socket(ntree, node, profile_socket);
}
}