Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/function/nodes/node_fn_string_substring.cc
| Show All 16 Lines | |||||
| #include "BLI_string_utf8.h" | #include "BLI_string_utf8.h" | ||||
| #include "node_function_util.hh" | #include "node_function_util.hh" | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void fn_node_string_substring_declare(NodeDeclarationBuilder &b) | static void fn_node_string_substring_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.is_function_node(); | |||||
| b.add_input<decl::String>("String"); | b.add_input<decl::String>("String"); | ||||
| b.add_input<decl::Int>("Position"); | b.add_input<decl::Int>("Position"); | ||||
| b.add_input<decl::Int>("Length").min(0); | b.add_input<decl::Int>("Length").min(0); | ||||
| b.add_output<decl::String>("String"); | b.add_output<decl::String>("String"); | ||||
| }; | }; | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| Show All 22 Lines | |||||