Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/function/nodes/node_fn_float_to_int.cc
| Show All 24 Lines | |||||
| #include "node_function_util.hh" | #include "node_function_util.hh" | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void fn_node_float_to_int_declare(NodeDeclarationBuilder &b) | static void fn_node_float_to_int_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.is_function_node(); | b.is_function_node(); | ||||
| b.add_input<decl::Float>("Float"); | b.add_input<decl::Float>(N_("Float")); | ||||
| b.add_output<decl::Int>("Integer"); | b.add_output<decl::Int>(N_("Integer")); | ||||
| }; | }; | ||||
| static void fn_node_float_to_int_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void fn_node_float_to_int_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiItemR(layout, ptr, "rounding_mode", 0, "", ICON_NONE); | uiItemR(layout, ptr, "rounding_mode", 0, "", ICON_NONE); | ||||
| } | } | ||||
| static void node_float_to_int_label(bNodeTree *UNUSED(ntree), bNode *node, char *label, int maxlen) | static void node_float_to_int_label(bNodeTree *UNUSED(ntree), bNode *node, char *label, int maxlen) | ||||
| ▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines | |||||