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 |
||
---|---|---|
.. | ||
blender | ||
creator | ||
CMakeLists.txt |