Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_input_shade_smooth.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_shade_smooth_declare(NodeDeclarationBuilder &b) | static void geo_node_input_shade_smooth_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.add_output<decl::Bool>("Smooth").field_source(); | b.add_output<decl::Bool>(N_("Smooth")).field_source(); | ||||
| } | } | ||||
| static void geo_node_input_shade_smooth_exec(GeoNodeExecParams params) | static void geo_node_input_shade_smooth_exec(GeoNodeExecParams params) | ||||
| { | { | ||||
| Field<bool> shade_smooth_field = AttributeFieldInput::Create<bool>("shade_smooth"); | Field<bool> shade_smooth_field = AttributeFieldInput::Create<bool>("shade_smooth"); | ||||
| params.set_output("Smooth", std::move(shade_smooth_field)); | params.set_output("Smooth", std::move(shade_smooth_field)); | ||||
| } | } | ||||
| Show All 11 Lines | |||||