Blender Git Loki

Git Commits -> Revision c1b4abf

Revision c1b4abf by Johnny Matthews (master)
October 11, 2021, 16:03 (GMT)
Geometry Nodes: Add Nodes to Get/Set Built-in Attributes

This commit implements T91780, adding nodes to get and set builtin
attributes. Individual set nodes are used so that the values can be
exposed for direct editing, which is useful for attributes like shade
smooth and spline resolution. Individual input nodes are used to allow
reusing nodes for multiple components, and to allow grouping multiple
outputs conceptually in the same node in the future.

Input Nodes
- Radius
- Curve Tilt
- Curve Handle Positions
- Is Shade Smooth
- Spline Resolution
- Is Spline Cyclic

'Set' Nodes
- Curve Radius
- Point Radius
- Curve Tilt
- Curve Handle Positions
- Is Shade Smooth
- Spline Resolution
- Is Spline Cyclic

Using hardcoded categories is necessary to add separators to the node
menu.

Differential Revision: https://developer.blender.org/D12687

Commit Details:

Full Hash: c1b4abf527f102ca20114e8179eca511d90784b3
Parent Commit: 83f87d9
Committed By: Hans Goudey
Lines Changed: +1107, -51

13 Added Paths:

/source/blender/nodes/geometry/nodes/node_geo_input_curve_handles.cc (+46, -0) (View)
/source/blender/nodes/geometry/nodes/node_geo_input_curve_tilt.cc (+42, -0) (View)
/source/blender/nodes/geometry/nodes/node_geo_input_radius.cc (+42, -0) (View)
/source/blender/nodes/geometry/nodes/node_geo_input_shade_smooth.cc (+42, -0) (View)
/source/blender/nodes/geometry/nodes/node_geo_input_spline_cyclic.cc (+43, -0) (View)
/source/blender/nodes/geometry/nodes/node_geo_input_spline_resolution.cc (+43, -0) (View)
/source/blender/nodes/geometry/nodes/node_geo_set_curve_handles.cc (+164, -0) (View)
/source/blender/nodes/geometry/nodes/node_geo_set_curve_radius.cc (+79, -0) (View)
/source/blender/nodes/geometry/nodes/node_geo_set_curve_tilt.cc (+78, -0) (View)
/source/blender/nodes/geometry/nodes/node_geo_set_point_radius.cc (+80, -0) (View)
/source/blender/nodes/geometry/nodes/node_geo_set_shade_smooth.cc (+78, -0) (View)
/source/blender/nodes/geometry/nodes/node_geo_set_spline_cyclic.cc (+79, -0) (View)
/source/blender/nodes/geometry/nodes/node_geo_set_spline_resolution.cc (+95, -0) (View)

9 Modified Paths:

/release/scripts/startup/nodeitems_builtins.py (+103, -49) (Diff)
/source/blender/blenkernel/BKE_node.h (+13, -0) (Diff)
/source/blender/blenkernel/intern/node.cc (+15, -1) (Diff)
/source/blender/makesdna/DNA_node_types.h (+5, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+12, -0) (Diff)
/source/blender/modifiers/intern/MOD_nodes_evaluator.cc (+8, -0) (Diff)
/source/blender/nodes/CMakeLists.txt (+13, -0) (Diff)
/source/blender/nodes/NOD_geometry.h (+13, -0) (Diff)
/source/blender/nodes/NOD_static_types.h (+14, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021