Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-10-27 18:24:29 +0300
committerHans Goudey <h.goudey@me.com>2021-10-27 18:24:29 +0300
commitdefc1b8e1815155840cff1736523760083a05807 (patch)
tree6b171ad4906c6706cb3fa2eb540b707c5ebe4ce1
parent87470169e07bfa9a06ea49232b78ca1f5da32fc3 (diff)
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.
-rw-r--r--source/blender/blenloader/intern/versioning_300.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/versioning_300.c b/source/blender/blenloader/intern/versioning_300.c
index 6840dc2b777..9bd6280dbf4 100644
--- a/source/blender/blenloader/intern/versioning_300.c
+++ b/source/blender/blenloader/intern/versioning_300.c
@@ -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);
}
}