Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_attribute_compare.cc
| Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
| static bNodeSocketTemplate geo_node_attribute_compare_out[] = { | static bNodeSocketTemplate geo_node_attribute_compare_out[] = { | ||||
| {SOCK_GEOMETRY, N_("Geometry")}, | {SOCK_GEOMETRY, N_("Geometry")}, | ||||
| {-1, ""}, | {-1, ""}, | ||||
| }; | }; | ||||
| static void geo_node_attribute_compare_init(bNodeTree *UNUSED(tree), bNode *node) | static void geo_node_attribute_compare_init(bNodeTree *UNUSED(tree), bNode *node) | ||||
| { | { | ||||
| NodeAttributeCompare *data = (NodeAttributeCompare *)MEM_callocN(sizeof(NodeAttributeCompare), | NodeAttributeCompare *data = (NodeAttributeCompare *)MEM_callocN(sizeof(NodeAttributeCompare), | ||||
| "attribute mix node"); | __func__); | ||||
| data->operation = NODE_FLOAT_COMPARE_GREATER_THAN; | data->operation = NODE_FLOAT_COMPARE_GREATER_THAN; | ||||
| data->input_type_a = GEO_NODE_ATTRIBUTE_INPUT_ATTRIBUTE; | data->input_type_a = GEO_NODE_ATTRIBUTE_INPUT_ATTRIBUTE; | ||||
| data->input_type_b = GEO_NODE_ATTRIBUTE_INPUT_ATTRIBUTE; | data->input_type_b = GEO_NODE_ATTRIBUTE_INPUT_ATTRIBUTE; | ||||
| node->storage = data; | node->storage = data; | ||||
| } | } | ||||
| static bool operation_tests_equality(const NodeAttributeCompare &node_storage) | static bool operation_tests_equality(const NodeAttributeCompare &node_storage) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 273 Lines • Show Last 20 Lines | |||||