Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_input_curve_handles.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_handles_declare(NodeDeclarationBuilder &b) | static void geo_node_input_curve_handles_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.add_output<decl::Vector>("Left").field_source(); | b.add_output<decl::Vector>(N_("Left")).field_source(); | ||||
| b.add_output<decl::Vector>("Right").field_source(); | b.add_output<decl::Vector>(N_("Right")).field_source(); | ||||
| } | } | ||||
| static void geo_node_input_curve_handles_exec(GeoNodeExecParams params) | static void geo_node_input_curve_handles_exec(GeoNodeExecParams params) | ||||
| { | { | ||||
| Field<float3> left_field = AttributeFieldInput::Create<float3>("handle_left"); | Field<float3> left_field = AttributeFieldInput::Create<float3>("handle_left"); | ||||
| Field<float3> right_field = AttributeFieldInput::Create<float3>("handle_right"); | Field<float3> right_field = AttributeFieldInput::Create<float3>("handle_right"); | ||||
| params.set_output("Left", std::move(left_field)); | params.set_output("Left", std::move(left_field)); | ||||
| params.set_output("Right", std::move(right_field)); | params.set_output("Right", std::move(right_field)); | ||||
| Show All 14 Lines | |||||