Fix T88601: Attribute Compare boolean doesn't expose socket
While we could make this node work for boolean inputs in the future, currently it's really just designed to compare "float-like" inputs. Many comparison modes don't even make sense for boolean inputs. Therefore, the simplest fix for this bug is just to disable the boolean attribute input modes for this node. Differential Revision: https://developer.blender.org/D11427
This commit is contained in:
parent
080623b8ac
commit
20e250dae3
Notes:
blender-bot
2023-02-14 08:29:54 +01:00
Referenced by issue #88601, Attribute Compare Boolean doesn't expose the expected value
|
@ -9148,12 +9148,12 @@ static void def_geo_attribute_attribute_compare(StructRNA *srna)
|
|||
RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update");
|
||||
|
||||
prop = RNA_def_property(srna, "input_type_a", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, rna_node_geometry_attribute_input_type_items_any);
|
||||
RNA_def_property_enum_items(prop, rna_node_geometry_attribute_input_type_items_no_boolean);
|
||||
RNA_def_property_ui_text(prop, "Input Type A", "");
|
||||
RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update");
|
||||
|
||||
prop = RNA_def_property(srna, "input_type_b", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, rna_node_geometry_attribute_input_type_items_any);
|
||||
RNA_def_property_enum_items(prop, rna_node_geometry_attribute_input_type_items_no_boolean);
|
||||
RNA_def_property_ui_text(prop, "Input Type B", "");
|
||||
RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue