Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/function/nodes/node_fn_float_compare.cc
| Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Lines | static void fn_node_float_compare_build_multi_function( | ||||
| const blender::fn::MultiFunction *fn = get_multi_function(builder.node()); | const blender::fn::MultiFunction *fn = get_multi_function(builder.node()); | ||||
| builder.set_matching_fn(fn); | builder.set_matching_fn(fn); | ||||
| } | } | ||||
| void register_node_type_fn_float_compare() | void register_node_type_fn_float_compare() | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| fn_node_type_base(&ntype, FN_NODE_FLOAT_COMPARE, "Float Compare", NODE_CLASS_CONVERTER, 0); | fn_node_type_base(&ntype, FN_NODE_FLOAT_COMPARE, "Compare Floats", NODE_CLASS_CONVERTER, 0); | ||||
| ntype.declare = blender::nodes::fn_node_float_compare_declare; | ntype.declare = blender::nodes::fn_node_float_compare_declare; | ||||
| node_type_label(&ntype, node_float_compare_label); | node_type_label(&ntype, node_float_compare_label); | ||||
| node_type_update(&ntype, node_float_compare_update); | node_type_update(&ntype, node_float_compare_update); | ||||
| ntype.build_multi_function = fn_node_float_compare_build_multi_function; | ntype.build_multi_function = fn_node_float_compare_build_multi_function; | ||||
| ntype.draw_buttons = geo_node_float_compare_layout; | ntype.draw_buttons = geo_node_float_compare_layout; | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||