Page MenuHome

Geometry Nodes: Update Set Spline Type Node for Fields
ClosedPublic

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

Details

Summary

Update the Set Spline Type node for a fields based selection input.

Diff Detail

Repository
rB Blender

Event Timeline

Johnny Matthews (guitargeek) requested review of this revision.Sep 16 2021, 6:16 PM
Johnny Matthews (guitargeek) created this revision.
source/blender/nodes/geometry/nodes/legacy/node_geo_curve_spline_type.cc
44–45

Use Legacy DNA type

source/blender/makesdna/DNA_node_types.h
1395

If the new node uses the same fields in DNA, I don't think there's any need to add a new struct. I doubt this node will change that much in the near future anyway.

source/blender/makesrna/intern/rna_nodetree.c
9511

Same comment here actually, I think this could be shared.

Revert to use the same DNA type

Add field indicators in declaration

This revision is now accepted and ready to land.Sep 30 2021, 10:46 PM

Updated with modify_geometry_sets

Hans Goudey (HooglyBoogly) added inline comments.
source/blender/nodes/geometry/nodes/legacy/node_geo_curve_spline_type.cc
302

Looks like this removes the newline at the end of the file.

source/blender/nodes/geometry/nodes/node_geo_curve_spline_type.cc
288

This can use std::move(geometry_set)