18#include <fmt/format.h>
47#define IDP_ARRAY_REALLOC_LIMIT 200
92 const bool do_id_user,
93 const int recursion_depth);
95 const bool do_id_user,
96 const int recursion_depth);
102#define GETPROP(prop, i) &(IDP_property_array_get(prop)[i])
106 IDProperty *prop = MEM_new<IDProperty>(
"IDProperty prop array");
122 for (
int i = 0; i < narray->
len; i++) {
141 for (
int i = 0; i < prop->
len; i++) {
184 prop.
data.
children_map = MEM_new<bke::idprop::IDPropertyGroupChildrenSet>(__func__);
198 int64_t newsize_test = newsize;
199 newsize_test = (newsize_test >> 3) + (newsize_test < 9 ? 3 : 6) + newsize_test;
200 return int(std::min<int64_t>(newsize_test, std::numeric_limits<int>::max()));
208 if (newlen <= prop->totallen) {
210 for (
int i = newlen; i < prop->
len; i++) {
217 if (newlen >= prop->
len) {
224 if (newlen < prop->
len) {
226 for (
int i = newlen; i < prop->
len; i++) {
240 IDProperty *prop,
int newlen,
void *newarr,
const bool do_id_users,
const int recursion_depth)
246 if (newlen >= prop->
len) {
249 for (
int a = prop->
len; a < newlen; a++) {
257 for (
int a = newlen; a < prop->
len; a++) {
265 const bool is_grow = newlen >= prop->
len;
275 if (is_grow ==
false) {
282 if (is_grow ==
true) {
355 IDProperty *newp = MEM_new<IDProperty>(__func__);
363 if (prop->
ui_data !=
nullptr) {
382 for (a = 0; a < prop->
len; a++) {
401 const size_t st_maxncpy,
405 IDProperty *prop = MEM_new<IDProperty>(
"IDProperty string");
409 "id property string 1");
417 if (st_maxncpy > 0) {
421 stlen_bytes = strlen(st);
423 const int stlen = int(stlen_bytes) + 1;
480 if (st_maxncpy > 0) {
484 src_len = strlen(st);
486 const int stlen = int(src_len) + 1;
494 const int stlen = int((st_maxncpy > 0) ?
BLI_strnlen(st, st_maxncpy - 1) : strlen(st)) +
499 if (is_byte ==
false) {
517 MEM_delete(
static_cast<char *
>(prop->
data.
pointer));
531 MEM_SAFE_DELETE(item.
name);
534 MEM_SAFE_DELETE(items);
551 if (item.value == value) {
560 void (*error_fn)(
const char *))
564 used_values.
reserve(items_num);
565 used_identifiers.
reserve(items_num);
567 bool is_valid =
true;
572 const std::string msg =
"Item identifier is empty";
573 error_fn(msg.c_str());
579 const std::string msg = fmt::format(
"Item identifier '{}' is already used",
581 error_fn(msg.c_str());
587 const std::string msg = fmt::format(
588 "Item value {} for item '{}' is already used", item.
value, item.
identifier);
589 error_fn(msg.c_str());
662 if (other && prop.
type == other->
type) {
687 if (prop_src !=
nullptr) {
689 if ((prop_dst.type != prop_src->
type || prop_dst.subtype != prop_src->
subtype) ||
691 (prop_src->
len != prop_dst.len)))
724 if (prop_exist !=
nullptr) {
746 const bool do_overwrite,
757 if (prop_exist !=
nullptr) {
770 if (prop_exist !=
nullptr) {
821 if (prop->
len == 0) {
908 if (prop->
len != required_size) {
922 switch (prop->
type) {
938 switch (prop->
type) {
954 switch (prop->
type) {
970 switch (prop->
type) {
996 std::swap(*dst, *idprop_tmp);
1002 return id->properties;
1007 if (
id->properties ==
nullptr) {
1008 id->properties = MEM_new<IDProperty>(
"IDProperty");
1015 return id->properties;
1020 return id->system_properties;
1025 if (
id->system_properties ==
nullptr) {
1026 id->system_properties = MEM_new<IDProperty>(__func__);
1027 id->system_properties->type =
IDP_GROUP;
1033 return id->system_properties;
1038 const bool is_strict)
1040 if (prop1 ==
nullptr && prop2 ==
nullptr) {
1043 if (prop1 ==
nullptr || prop2 ==
nullptr) {
1044 return is_strict ?
false :
true;
1050 switch (prop1->
type) {
1054#if !defined(NDEBUG) && defined(WITH_PYTHON)
1060 "WARNING: Comparing two float properties that have nearly the same value (%f vs. "
1077 return ((prop1->
len == prop2->
len) &&
1088 if (is_strict && prop1->
len != prop2->
len) {
1106 if (prop1->
len != prop2->
len) {
1110 for (
int i = 0; i < prop1->
len; i++) {
1141 prop = MEM_new<IDProperty>(
"IDProperty int");
1145 prop = MEM_new<IDProperty>(
"IDProperty float");
1146 *
reinterpret_cast<float *
>(&prop->
data.
val) = val->
f;
1149 prop = MEM_new<IDProperty>(
"IDProperty double");
1150 *
reinterpret_cast<double *
>(&prop->
data.
val) = val->
d;
1153 prop = MEM_new<IDProperty>(
"IDProperty boolean");
1161 prop = MEM_new<IDProperty>(
"IDProperty array");
1163 if (val->
array.len) {
1174 const char *st = val->
string.str;
1176 prop = MEM_new<IDProperty>(
"IDProperty string");
1179 if (st ==
nullptr) {
1181 "id property string 1");
1188 "id property string 2");
1195 if (st ==
nullptr || val->
string.len <= 1) {
1197 "id property string 1");
1206 "id property string 3");
1217 prop = MEM_new<IDProperty>(
"IDProperty group");
1221 prop = MEM_new<IDProperty>(
"IDProperty datablock");
1228 prop = MEM_new<IDProperty>(
"IDProperty array");
1243 prop_template.
i = value;
1337 MEM_delete(ui_data);
1347 const bool do_id_user,
1348 const int recursion_depth)
1352 "Too deep level of IDProperties embedding detected (over %d levels), this is "
1353 "likely caused by a buggy script or add-on. The data in property '%s' will not "
1360 switch (prop->
type) {
1385 if (prop->
ui_data !=
nullptr) {
1391 const bool do_id_user,
1392 const int recursion_depth)
1417 if (prop ==
nullptr) {
1421 if (reference !=
nullptr) {
1427 const int type_filter,
1428 const int recursion_depth,
1431 if (!id_property_root) {
1437 "Too deep level of IDProperties embedding detected (over %d levels), this is "
1438 "likely caused by a buggy script or add-on. The data in property '%s' will not "
1439 "be processed further",
1441 id_property_root->
name);
1445 if (type_filter == 0 || (1 << id_property_root->
type) & type_filter) {
1446 callback(id_property_root);
1450 switch (id_property_root->
type) {
1459 for (
int i = 0; i < id_property_root->
len; i++) {
1470 const int type_filter,
1477 const IDProperty *prop,
1478 const int recursion_depth);
1480 BlendWriter *writer,
1481 const int recursion_depth);
1552 for (
int i = 0; i < prop->
len; i++) {
1581 const int recursion_depth)
1591 "Too deep level of IDProperties embedding detected (over %d levels), this is "
1592 "likely caused by a buggy script or add-on. The data in property '%s' will not "
1593 "be written in the blend-file or memfile undo step",
1600 for (
int a = 0; a < empty_prop_idparray->
len; a++) {
1609 for (
int a = 0; a < empty_prop_idparray->
len; a++) {
1618 for (
int a = 0; a < prop->
len; a++) {
1642 const int recursion_depth)
1644 switch (prop->
type) {
1664 if (prop->
ui_data !=
nullptr) {
1671 const int recursion_depth)
1675 "Too deep level of IDProperties embedding detected (over %d levels), this is "
1676 "likely caused by a buggy script or add-on. The data in property '%s' will not "
1677 "be written in the blend-file or memfile undo step",
1691 struct_writer.
shallow_data.data.children_map =
nullptr;
1702 BlendDataReader *reader,
1703 const int recursion_depth);
1787 const int recursion_depth)
1798 if (
array ==
nullptr) {
1803 for (
int i = 0; i < prop->
len; i++) {
1810 const int recursion_depth)
1819 for (
int i = 0; i < prop->
len; i++) {
1826 reader,
reinterpret_cast<double **
>(&prop->
data.
pointer), &prop->
len);
1830 reader,
reinterpret_cast<int **
>(&prop->
data.
pointer), &prop->
len);
1834 reader,
reinterpret_cast<float **
>(&prop->
data.
pointer), &prop->
len);
1857 reader,
reinterpret_cast<char **
>(&prop->
data.
pointer), &prop->
len);
1864 const int recursion_depth)
1866 ListBaseT<IDProperty> *lb = &prop->
data.
group;
1886 const int recursion_depth)
1892 idprop->ui_data =
nullptr;
1897 "Too deep level of IDProperties embedding detected (over %d levels), this is "
1898 "likely caused by a buggy script or add-on. The data in property '%s' will not "
1899 "be read from the blend-file",
1903 reset_property(prop);
1907 switch (prop->
type) {
1937 "Found unknown IDProperty type %d, reset to Integer one with null value",
1940 reset_property(prop);
1943 if (prop->
ui_data !=
nullptr) {
1956 CLOG_WARN(&
LOG,
"%s: found non group data, freeing type %d!", caller_func_id, (*prop)->type);
1996 return &ui_data->
base;
2000 return &ui_data->
base;
2004 ui_data->
min = INT_MIN;
2009 return &ui_data->
base;
2013 return &ui_data->
base;
2021 ui_data->
step = 1.0f;
2023 return &ui_data->
base;
2036 if (prop->
ui_data !=
nullptr) {
2119 dst->
min = double(src_int->
min);
2120 dst->
max = double(src_int->
max);
2202 auto clamp_double_to_int = [](
const double value) {
2203 return int(std::clamp<double>(value, INT_MIN,
INT_MAX));
2207 dst->
min = clamp_double_to_int(src_float->
min);
2208 dst->
max = clamp_double_to_int(src_float->
max);
2211 dst->
step = clamp_double_to_int(src_float->
step);
2249namespace bke::idprop {
2254 XXH3_64bits_update(hash_state, prop->
name, strlen(prop->
name));
2255 XXH3_64bits_update(hash_state, &prop->
type,
sizeof(prop->
type));
2261 XXH3_64bits_update(hash_state, &prop->
data.
val,
sizeof(prop->
data.
val));
2266 XXH3_64bits_update(hash_state, &val,
sizeof(
double));
2271 XXH3_64bits_update(hash_state, prop->
data.
pointer,
size_t(prop->
len));
2277 XXH3_64bits_update(hash_state, &prop->
subtype,
sizeof(prop->
subtype));
2279 XXH3_64bits_update(hash_state, prop->
data.
pointer, elem_size *
size_t(prop->
len));
#define IDP_float_get(prop)
#define IDP_array_voidp_get(prop)
#define IDP_int_get(prop)
#define IDP_int_set(prop, value)
#define IDP_string_get(prop)
#define IDP_double_get(prop)
#define IDP_property_array_get(prop)
#define IDP_array_float_get(prop)
#define IDP_bool_get(prop)
#define BLO_read_struct_list(reader, struct_name, list)
#define BLO_read_struct(reader, struct_name, ptr_p)
#define CLOG_ERROR(clg_ref,...)
#define CLOG_WARN(clg_ref,...)
#define DEFAULT_ALLOC_FOR_NULL_STRINGS
Read Blender memory allocation and freeing.
#define BLI_assert_unreachable()
#define STREQLEN(a, b, n)
#define MEM_realloc_zeroed(vmemh, len)
constexpr IndexRange()=default
void reserve(const int64_t n)
constexpr int64_t size() const
constexpr const char * data() const
void copy_utf8_truncated(char *dst, int64_t dst_size) const
#define IDP_ARRAY_REALLOC_LIMIT
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
std::unique_ptr< IDProperty, IDPropertyDeleter > create_group(StringRef prop_name, eIDPropertyFlag flags={})
Allocate a new IDProperty of type IDP_GROUP.
void hash(const IDProperty &base_prop, XXH3_state_t *hash_state)
static IDPropertyUIData * convert_base_ui_data(IDPropertyUIData *src, const eIDPropertyUIDataType dst_type)
static void idp_group_children_map_ensure(IDProperty &prop)
bool IDP_EnumItemsValidate(const IDPropertyUIDataEnumItem *items, int items_num, void(*error_fn)(const char *))
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void IDP_FreeFromGroup(IDProperty *group, IDProperty *prop) ATTR_NONNULL()
float IDP_coerce_to_float_or_zero(const IDProperty *prop)
void IDP_print(const IDProperty *prop)
static IDProperty * IDP_CopyGroup(const IDProperty *prop, const int flag)
void IDP_FreeProperty_ex(IDProperty *prop, bool do_id_user)
void IDP_ReplaceGroupInGroup(IDProperty *dest, const IDProperty *src) ATTR_NONNULL()
char * STRNCPY(char(&dst)[N], const char *src)
void IDP_ReplaceInGroup(IDProperty *group, IDProperty *prop) ATTR_NONNULL()
IDProperty * IDP_GetPropertyTypeFromGroup(const IDProperty *prop, StringRef name, char type) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
static void IDP_WriteIDPArray(const IDProperty *prop, BlendWriter *writer, const int recursion_depth)
void * MEM_new_array_uninitialized(size_t len, size_t size, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
void BLO_read_pointer_array_and_validate_size(BlendDataReader *reader, T **ptr_p, SizeT *array_size)
static void idp_resize_group_array(IDProperty *prop, int newlen, void *newarr, const bool do_id_users, const int recursion_depth)
void BLI_insertlinkreplace(ListBase *listbase, void *vreplacelink, void *vnewlink) ATTR_NONNULL(1
static void IDP_int_ui_data_free_enum_items(IDPropertyUIDataInt *ui_data)
IDProperty * IDP_ID_system_properties_ensure(ID *id) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
static IDProperty * idp_generic_copy(const IDProperty *prop, const int)
static void IDP_DirectLinkIDPArray(IDProperty *prop, BlendDataReader *reader, const int recursion_depth)
static void IDP_DirectLinkString(IDProperty *prop, BlendDataReader *reader)
double IDP_coerce_to_double_or_zero(const IDProperty *prop)
bool IDP_AddToGroup(IDProperty *group, IDProperty *prop) ATTR_NONNULL()
IDProperty * IDP_CopyProperty(const IDProperty *prop) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
IDProperty * IDP_GetPropertyFromGroup(const IDProperty *prop, StringRef name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void IDP_BlendWrite(BlendWriter *writer, const IDProperty *prop)
void IDP_foreach_property(IDProperty *id_property_root, int type_filter, FunctionRef< void(IDProperty *id_property)> callback)
void IDP_FreeString(IDProperty *prop) ATTR_NONNULL()
constexpr int MAX_IDPROP_DEPTH_LEVEL
int IDP_coerce_to_int_or_zero(const IDProperty *prop)
static void ui_data_free(IDPropertyUIData *ui_data, const eIDPropertyUIDataType type)
static void write_ui_data(const IDProperty *prop, BlendWriter *writer)
const IDProperty * _IDP_assert_type_mask(const IDProperty *prop, int ty_mask)
std::optional< int > IDP_group_lookup_int(const IDProperty &group, StringRef name)
static void IDP_WriteProperty_OnlyData(const IDProperty *prop, BlendWriter *writer, const int recursion_depth)
static void IDP_FreeIDPArray(IDProperty *prop, const bool do_id_user, const int recursion_depth)
std::optional< float > IDP_group_lookup_float(const IDProperty &group, StringRef name)
eIDPropertyUIDataType IDP_ui_data_type(const IDProperty *prop)
IDProperty * IDP_NewString(const char *st, StringRef name, eIDPropertyFlag flags={}) ATTR_WARN_UNUSED_RESULT
std::optional< StringRefNull > IDP_group_lookup_string(const IDProperty &group, StringRef name)
void IDP_AssignID(IDProperty *prop, ID *id, int flag)
IDProperty * IDP_ID_system_properties_get(ID *id) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void MEM_delete_void(void *vmemh)
void IDP_MergeGroup(IDProperty *dest, const IDProperty *src, bool do_overwrite) ATTR_NONNULL()
@ LIB_ID_CREATE_NO_USER_REFCOUNT
void IDP_ReplaceInGroup_ex(IDProperty *group, IDProperty *prop, IDProperty *prop_exist, int flag)
std::optional< bool > IDP_group_lookup_bool(const IDProperty &group, StringRef name)
void IDP_CopyPropertyContent(IDProperty *dst, const IDProperty *src) ATTR_NONNULL()
int BLI_findindex(const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
static void IDP_FreeArray(IDProperty *prop, const bool do_id_user, const int recursion_depth)
void IDP_ResizeIDPArray(IDProperty *prop, int newlen)
void * MEM_dupalloc_void(const void *vmemh) ATTR_WARN_UNUSED_RESULT
void IDP_ClearProperty(IDProperty *prop)
IDPropertyUIData * IDP_TryConvertUIData(IDPropertyUIData *src, eIDPropertyUIDataType src_type, eIDPropertyUIDataType dst_type)
static IDProperty * IDP_CopyString(const IDProperty *prop, const int flag)
void IDP_RemoveFromGroup(IDProperty *group, IDProperty *prop) ATTR_NONNULL()
static void idp_foreach_property_recurse(IDProperty *id_property_root, const int type_filter, const int recursion_depth, const FunctionRef< void(IDProperty *id_property)> callback)
void BLI_remlink(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
static void IDP_WriteGroup(const IDProperty *prop, BlendWriter *writer, const int recursion_depth)
void IDP_ui_data_free(IDProperty *prop)
IDProperty * IDP_GetProperties(ID *id) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void IDP_SetIndexArray(IDProperty *prop, int index, IDProperty *item) ATTR_NONNULL()
void IDP_AssignString(IDProperty *prop, const char *st) ATTR_NONNULL()
int char char int int int int size_t BLI_strnlen(const char *str, size_t maxlen) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
const IDProperty * _IDP_assert_type(const IDProperty *prop, char ty)
static void read_ui_data(IDProperty *prop, BlendDataReader *reader)
void IDP_ResizeArray(IDProperty *prop, int newlen)
IDProperty * IDP_GetIndexArray(IDProperty *prop, int index) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void IDP_SyncGroupValues(IDProperty *dest, const IDProperty *src) ATTR_NONNULL()
static void IDP_WriteArray(const IDProperty *prop, BlendWriter *writer, const int recursion_depth)
static void idp_free_property_recurse(IDProperty *prop, const bool do_id_user, const int recursion_depth)
static IDPropertyUIData * ui_data_alloc(const eIDPropertyUIDataType type)
void IDP_BlendReadData_impl(BlendDataReader *reader, IDProperty **prop, const char *caller_func_id)
void BLO_read_array_and_validate_size(BlendDataReader *reader, T **ptr_p, SizeT *array_size, const int elems=1)
static IDProperty * IDP_CopyID(const IDProperty *prop, const int flag)
void IDP_AppendArray(IDProperty *prop, IDProperty *item)
void IDP_SyncGroupTypes(IDProperty *dest, const IDProperty *src, bool do_arraylen) ATTR_NONNULL()
static void IDP_DirectLinkGroup(IDProperty *prop, BlendDataReader *reader, const int recursion_depth)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
char * BLI_strdup(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC
static size_t idp_size_table[]
void IDP_FreeProperty(IDProperty *prop)
void IDP_ui_data_free_unique_contents(IDPropertyUIData *ui_data, eIDPropertyUIDataType type, const IDPropertyUIData *other)
static void idp_blend_write_recurse(BlendWriter *writer, const IDProperty *prop, const int recursion_depth)
MINLINE float max_ff(float a, float b)
IDProperty * IDP_NewInt(int value, blender::StringRef name, eIDPropertyFlag flags={})
IDProperty * IDP_CopyIDPArray(const IDProperty *array, int flag) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void IDP_MergeGroup_ex(IDProperty *dest, const IDProperty *src, bool do_overwrite, int flag) ATTR_NONNULL()
std::optional< Span< float > > IDP_group_lookup_float_array(const IDProperty &group, StringRef name, int required_size)
IDProperty * IDP_EnsureProperties(ID *id) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
static IDProperty * IDP_CopyArray(const IDProperty *prop, const int flag)
const IDPropertyUIDataEnumItem * IDP_EnumItemFind(const IDProperty *prop)
IDProperty * IDP_New(char type, const IDPropertyTemplate *val, StringRef name, eIDPropertyFlag flags={}) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
char * BLI_strdup_null(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_MALLOC
IDProperty * IDP_NewStringMaxSize(const char *st, size_t st_maxncpy, StringRef name, eIDPropertyFlag flags={}) ATTR_WARN_UNUSED_RESULT
void IDP_EnumItemsFree(IDPropertyUIDataEnumItem *items, int items_num)
constexpr int MAX_IDPROP_DEPTH_LEVEL_FOR_WRITE
IDPropertyUIData * IDP_ui_data_copy(const IDProperty *prop)
IDProperty * IDP_CopyProperty_ex(const IDProperty *prop, int flag) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
IDPropertyUIData * IDP_ui_data_ensure(IDProperty *prop)
static int idp_resize_grow_size_calc(const int newsize)
static void idp_free_property_content_recurse(IDProperty *prop, const bool do_id_user, const int recursion_depth)
IDProperty * IDP_GetPropertyFromGroup_null(const IDProperty *prop, StringRef name) ATTR_WARN_UNUSED_RESULT
@ IDP_UI_DATA_TYPE_STRING
@ IDP_UI_DATA_TYPE_UNSUPPORTED
@ IDP_UI_DATA_TYPE_BOOLEAN
constexpr int MAX_IDPROP_DEPTH_LEVEL_FOR_READ
static void IDP_DirectLinkProperty(IDProperty *prop, BlendDataReader *reader, const int recursion_depth)
bool IDP_ui_data_supported(const IDProperty *prop)
bool IDP_EqualsProperties(const IDProperty *prop1, const IDProperty *prop2) ATTR_WARN_UNUSED_RESULT
void IDP_Reset(IDProperty *prop, const IDProperty *reference)
static void IDP_WriteString(const IDProperty *prop, BlendWriter *writer)
IDProperty * IDP_NewIDPArray(StringRef name) ATTR_WARN_UNUSED_RESULT
static void IDP_FreeGroup(IDProperty *prop, const bool do_id_user, const int recursion_depth)
static void IDP_DirectLinkArray(IDProperty *prop, BlendDataReader *reader, const int recursion_depth)
void BLO_read_string(BlendDataReader *reader, char **ptr_p)
void IDP_AssignStringMaxSize(IDProperty *prop, const char *st, size_t st_maxncpy) ATTR_NONNULL()
size_t BLI_strnlen_utf8_ex(const char *strc, size_t strc_maxlen, size_t *r_len_bytes) ATTR_NONNULL(1
const IDProperty * _IDP_assert_type_and_subtype(const IDProperty *prop, char ty, char sub_ty)
void * MEM_new_array_zeroed(size_t len, size_t size, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
bool IDP_EqualsProperties_ex(const IDProperty *prop1, const IDProperty *prop2, bool is_strict) ATTR_WARN_UNUSED_RESULT
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
void write_pointer_array(int64_t num, const void *data)
void write_string(const char *data)
void write_int8_array(int64_t num, const int8_t *data)
void write_float_array(int64_t num, const float *data)
void write_struct_at_address(const void *address, const T *data, BlendStructWriterTypedFn< T > fn=nullptr)
void write_char_array(int64_t num, const char *data)
void write_struct_cast(const void *data, BlendStructWriterTypedFn< T > fn=nullptr)
void write_struct(const T *data, BlendStructWriterTypedFn< T > fn=nullptr)
void write_double_array(int64_t num, const double *data)
void write_struct_array_at_address(const int64_t array_size, const void *address, const T *data, BlendStructWriterTypedFn< T > fn=nullptr)
void write_struct_array(const int64_t array_size, const T *data, BlendStructWriterTypedFn< T > fn=nullptr)
void write_int32_array(int64_t num, const int32_t *data)
bke::idprop::IDPropertyGroupChildrenSet * children_map
ListBaseT< struct IDProperty > group
IDPropertyUIDataEnumItem * enum_items
IDPropertyUIData * ui_data
CustomIDVectorSet< IDProperty *, IDPropNameGetter, 8 > children
struct blender::IDPropertyTemplate::@100215251242210352227251277016155305041022127377 array
struct blender::IDPropertyTemplate::@116303142222164257205355242364302075230051143265 string