Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_string_join.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_string_join_declare(NodeDeclarationBuilder &b) | static void geo_node_string_join_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.add_input<decl::String>("Delimiter"); | b.add_input<decl::String>(N_("Delimiter")); | ||||
| b.add_input<decl::String>("Strings").multi_input().hide_value(); | b.add_input<decl::String>(N_("Strings")).multi_input().hide_value(); | ||||
| b.add_output<decl::String>("String"); | b.add_output<decl::String>(N_("String")); | ||||
| }; | }; | ||||
| static void geo_node_string_join_exec(GeoNodeExecParams params) | static void geo_node_string_join_exec(GeoNodeExecParams params) | ||||
| { | { | ||||
| Vector<std::string> strings = params.extract_multi_input<std::string>("Strings"); | Vector<std::string> strings = params.extract_multi_input<std::string>("Strings"); | ||||
| const std::string delim = params.extract_input<std::string>("Delimiter"); | const std::string delim = params.extract_input<std::string>("Delimiter"); | ||||
| std::string output; | std::string output; | ||||
| Show All 20 Lines | |||||