Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_input_curve_tilt.cc
| Show All 14 Lines | |||||
| */ | */ | ||||
| #include "node_geometry_util.hh" | #include "node_geometry_util.hh" | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void geo_node_input_curve_tilt_declare(NodeDeclarationBuilder &b) | static void geo_node_input_curve_tilt_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.add_output<decl::Float>("Tilt").field_source(); | b.add_output<decl::Float>(N_("Tilt")).field_source(); | ||||
| } | } | ||||
| static void geo_node_input_curve_tilt_exec(GeoNodeExecParams params) | static void geo_node_input_curve_tilt_exec(GeoNodeExecParams params) | ||||
| { | { | ||||
| Field<float> tilt_field = AttributeFieldInput::Create<float>("tilt"); | Field<float> tilt_field = AttributeFieldInput::Create<float>("tilt"); | ||||
| params.set_output("Tilt", std::move(tilt_field)); | params.set_output("Tilt", std::move(tilt_field)); | ||||
| } | } | ||||
| Show All 11 Lines | |||||