RNA: Remove bitmask from BoolAttributeValue.value
Bool attributes are treated as contiguous arrays of `bool` rather than using a bitmask. Using a bitmask also disables raw array access, and with raw array access, the property is faster to access through the Python API with bpy_rna.cc#foreach_getset. Pull Request: https://projects.blender.org/blender/blender/pulls/116997
This commit is contained in:
committed by
Hans Goudey
parent
eca14d5b40
commit
2b9aa55a03
@@ -1013,7 +1013,7 @@ static void rna_def_attribute_bool(BlenderRNA *brna)
|
||||
RNA_def_struct_sdna(srna, "MBoolProperty");
|
||||
RNA_def_struct_ui_text(srna, "Bool Attribute Value", "Bool value in geometry attribute");
|
||||
prop = RNA_def_property(srna, "value", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, nullptr, "b", 0x01);
|
||||
RNA_def_property_boolean_sdna(prop, nullptr, "b", 0);
|
||||
}
|
||||
|
||||
static void rna_def_attribute_int8(BlenderRNA *brna)
|
||||
|
||||
Reference in New Issue
Block a user