tornavis/source
Thomas Barlow 2a97516610 RNA: Use PROP_RAW_BOOLEAN with single-byte PROP_BOOLEAN raw types
The PROP_RAW_BOOLEAN raw type exists, but was only used as a fallback in
bpy_rna.cc#foreach_getset to help construct an input RawArray for
PROP_BOOLEAN properties without raw access.

Using the PROP_RAW_BOOLEAN raw type for PROP_BOOLEAN properties where
possible will make it so that almost all PROP_BOOLEAN properties are
considered compatible with bool buffers in bpy_rna.cc#foreach_getset,
which should simplify efficient access to bool properties of collection
items with bpy_rna.cc#foreach_getset.

Only about 50 PROP_BOOLEAN properties have raw access because most
either don't use #RNA_def_property_boolean_sdna or use a bitmask, which
disables raw access. Even fewer of these properties belong to a
StructRNA used by a collection property with raw access.

PROP_BOOLEAN properties with raw access, but which use a type larger
than a single byte are rarer still, and will remain using their existing
raw type because they cannot have raw access as bool.

Pull Request: https://projects.blender.org/blender/blender/pulls/116673
2024-01-12 16:04:47 +01:00
..
blender RNA: Use PROP_RAW_BOOLEAN with single-byte PROP_BOOLEAN raw types 2024-01-12 16:04:47 +01:00
creator Creator: update image formats shown in the CLI help 2024-01-09 01:49:16 +01:00
CMakeLists.txt