30 {
SOCK_FLOAT,
N_(
"A"), 0.0f, 0.0f, 0.0f, 0.0f, -10000.0f, 10000.0f},
31 {
SOCK_FLOAT,
N_(
"B"), 0.0f, 0.0f, 0.0f, 0.0f, -10000.0f, 10000.0f},
32 {
SOCK_FLOAT,
N_(
"Epsilon"), 0.001f, 0.0f, 0.0f, 0.0f, -10000.0f, 10000.0f},
43 uiItemR(layout,
ptr,
"operation", 0,
"", ICON_NONE);
70 "Less Than", [](
float a,
float b) {
return a < b; }};
72 "Less Equal", [](
float a,
float b) {
return a <= b; }};
74 "Greater Than", [](
float a,
float b) {
return a > b; }};
76 "Greater Equal", [](
float a,
float b) {
return a >= b; }};
82 switch (
node.custom1) {
88 return greater_than_fn;
90 return greater_equal_fn;
void nodeSetSocketAvailability(struct bNodeSocket *sock, bool is_available)
#define FN_NODE_FLOAT_COMPARE
void node_type_socket_templates(struct bNodeType *ntype, struct bNodeSocketTemplate *inputs, struct bNodeSocketTemplate *outputs)
void node_type_update(struct bNodeType *ntype, void(*updatefunc)(struct bNodeTree *ntree, struct bNode *node))
#define NODE_CLASS_CONVERTOR
void nodeRegisterType(struct bNodeType *ntype)
void node_type_label(struct bNodeType *ntype, void(*labelfunc)(struct bNodeTree *ntree, struct bNode *, char *label, int maxlen))
void * BLI_findlink(const struct ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, const size_t maxncpy) ATTR_NONNULL()
@ NODE_FLOAT_COMPARE_GREATER_THAN
@ NODE_FLOAT_COMPARE_GREATER_EQUAL
@ NODE_FLOAT_COMPARE_EQUAL
@ NODE_FLOAT_COMPARE_LESS_EQUAL
@ NODE_FLOAT_COMPARE_LESS_THAN
@ NODE_FLOAT_COMPARE_NOT_EQUAL
void uiItemR(uiLayout *layout, struct PointerRNA *ptr, const char *propname, int flag, const char *name, int icon)
void set_matching_fn(const fn::MultiFunction &function)
const MultiFunction & dummy_multi_function
static void node_float_compare_label(bNodeTree *UNUSED(ntree), bNode *node, char *label, int maxlen)
static const blender::fn::MultiFunction & get_multi_function(bNode &node)
static void geo_node_float_compare_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
void register_node_type_fn_float_compare()
static bNodeSocketTemplate fn_node_float_compare_in[]
static void node_float_compare_update(bNodeTree *UNUSED(ntree), bNode *node)
static bNodeSocketTemplate fn_node_float_compare_out[]
static void node_float_compare_expand_in_mf_network(blender::nodes::NodeMFNetworkBuilder &builder)
void fn_node_type_base(bNodeType *ntype, int type, const char *name, short nclass, short flag)
bool RNA_enum_name(const EnumPropertyItem *item, const int value, const char **r_name)
const EnumPropertyItem rna_enum_node_float_compare_items[]
Compact definition of a node socket.
NodeExpandInMFNetworkFunction expand_in_mf_network
void(* draw_buttons)(struct uiLayout *, struct bContext *C, struct PointerRNA *ptr)
__forceinline const avxi abs(const avxi &a)