Page MenuHome

Geometry Nodes: Create New Version of Curve Set Handles Node
ClosedPublic

Authored by Johnny Matthews (guitargeek) on Sep 16 2021, 8:53 PM.

Details

Summary

Create a new fields-aware version of the "Set Curve Handles" node.

Diff Detail

Repository
rB Blender

Event Timeline

Johnny Matthews (guitargeek) requested review of this revision.Sep 16 2021, 8:53 PM
Johnny Matthews (guitargeek) created this revision.

Update Legacy Node to use a Legacy DNA type

The code looks good to me.

source/blender/nodes/geometry/nodes/node_geo_curve_set_handles.cc
29

Now that socket visualization is in master, this can have .supports_field(); on it.

This revision is now accepted and ready to land.Sep 24 2021, 12:32 AM

Updated with modify_geometry_sets

Just one small comment, otherwise this is good to go.

source/blender/nodes/geometry/nodes/node_geo_curve_set_handles.cc
88

has_spline_with_type has to iterate over all of the splines, so it would be a bit more simple/efficient to just use has_bezier_spline = true; after checking the spline's type below.