Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/function/nodes/node_fn_boolean_math.cc
| Show All 23 Lines | |||||
| #include "node_function_util.hh" | #include "node_function_util.hh" | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void fn_node_boolean_math_declare(NodeDeclarationBuilder &b) | static void fn_node_boolean_math_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.is_function_node(); | b.is_function_node(); | ||||
| b.add_input<decl::Bool>("Boolean", "Boolean"); | b.add_input<decl::Bool>(N_("Boolean"), "Boolean"); | ||||
| b.add_input<decl::Bool>("Boolean", "Boolean_001"); | b.add_input<decl::Bool>(N_("Boolean"), "Boolean_001"); | ||||
| b.add_output<decl::Bool>("Boolean"); | b.add_output<decl::Bool>(N_("Boolean")); | ||||
| }; | }; | ||||
| static void fn_node_boolean_math_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void fn_node_boolean_math_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiItemR(layout, ptr, "operation", 0, "", ICON_NONE); | uiItemR(layout, ptr, "operation", 0, "", ICON_NONE); | ||||
| } | } | ||||
| static void node_boolean_math_update(bNodeTree *UNUSED(ntree), bNode *node) | static void node_boolean_math_update(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| ▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines | |||||