Fix incorrect RNA enum default
Also another copy and paste error in the attribute compare node.
This commit is contained in:
parent
c604fd56a7
commit
e285765a6b
|
@ -8689,7 +8689,7 @@ static void def_geo_attribute_attribute_compare(StructRNA *srna)
|
|||
|
||||
prop = RNA_def_property(srna, "operation", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, rna_enum_node_float_compare_items);
|
||||
RNA_def_property_enum_default(prop, NODE_MATH_ADD);
|
||||
RNA_def_property_enum_default(prop, NODE_FLOAT_COMPARE_GREATER_THAN);
|
||||
RNA_def_property_ui_text(prop, "Operation", "");
|
||||
RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update");
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ static bNodeSocketTemplate geo_node_attribute_compare_out[] = {
|
|||
static void geo_node_attribute_compare_init(bNodeTree *UNUSED(tree), bNode *node)
|
||||
{
|
||||
NodeAttributeCompare *data = (NodeAttributeCompare *)MEM_callocN(sizeof(NodeAttributeCompare),
|
||||
"attribute mix node");
|
||||
__func__);
|
||||
data->operation = NODE_FLOAT_COMPARE_GREATER_THAN;
|
||||
data->input_type_a = GEO_NODE_ATTRIBUTE_INPUT_ATTRIBUTE;
|
||||
data->input_type_b = GEO_NODE_ATTRIBUTE_INPUT_ATTRIBUTE;
|
||||
|
|
Loading…
Reference in New Issue