Commit: defc1b8e1815155840cff1736523760083a05807
Author: Hans Goudey
Date:   Wed Oct 27 10:24:29 2021 -0500
Branches: master
https://developer.blender.org/rBdefc1b8e1815155840cff1736523760083a05807

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.

===================================================================

M       source/blender/blenloader/intern/versioning_300.c

===================================================================

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);
     }
   }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to