Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/function/nodes/node_fn_float_to_int.cc
| Show All 23 Lines | |||||
| #include "UI_resources.h" | #include "UI_resources.h" | ||||
| #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.add_input<decl::Float>("Float"); | b.add_input<decl::Float>("Float"); | ||||
| b.add_output<decl::Int>("Integer"); | b.add_output<decl::Int>("Integer"); | ||||
| }; | }; | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| 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) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines | |||||