Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/function/nodes/node_fn_input_string.cc
| Show All 17 Lines | |||||
| #include "UI_interface.h" | #include "UI_interface.h" | ||||
| #include "UI_resources.h" | #include "UI_resources.h" | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void fn_node_input_string_declare(NodeDeclarationBuilder &b) | static void fn_node_input_string_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.is_function_node(); | |||||
| b.add_output<decl::String>("String"); | b.add_output<decl::String>("String"); | ||||
| }; | }; | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| static void fn_node_input_string_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void fn_node_input_string_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiItemR(layout, ptr, "string", 0, "", ICON_NONE); | uiItemR(layout, ptr, "string", 0, "", ICON_NONE); | ||||
| ▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines | |||||