Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/function/nodes/node_fn_input_vector.cc
| Show All 19 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_vector_declare(NodeDeclarationBuilder &b) | static void fn_node_input_vector_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.add_output<decl::Vector>("Vector"); | b.add_output<decl::Vector>(N_("Vector")); | ||||
| }; | }; | ||||
| static void fn_node_input_vector_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void fn_node_input_vector_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiLayout *col = uiLayoutColumn(layout, true); | uiLayout *col = uiLayoutColumn(layout, true); | ||||
| uiItemR(col, ptr, "vector", UI_ITEM_R_EXPAND, "", ICON_NONE); | uiItemR(col, ptr, "vector", UI_ITEM_R_EXPAND, "", ICON_NONE); | ||||
| } | } | ||||
| Show All 30 Lines | |||||