Differential D13033 Diff 44115 source/blender/nodes/geometry/nodes/node_geo_input_spline_resolution.cc
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_input_spline_resolution.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_spline_resolution_declare(NodeDeclarationBuilder &b) | static void geo_node_input_spline_resolution_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.add_output<decl::Int>("Resolution").field_source(); | b.add_output<decl::Int>(N_("Resolution")).field_source(); | ||||
| } | } | ||||
| static void geo_node_input_spline_resolution_exec(GeoNodeExecParams params) | static void geo_node_input_spline_resolution_exec(GeoNodeExecParams params) | ||||
| { | { | ||||
| Field<int> resolution_field = AttributeFieldInput::Create<int>("resolution"); | Field<int> resolution_field = AttributeFieldInput::Create<int>("resolution"); | ||||
| params.set_output("Resolution", std::move(resolution_field)); | params.set_output("Resolution", std::move(resolution_field)); | ||||
| } | } | ||||
| Show All 12 Lines | |||||