44# include "RNA_prototypes.hh"
59# define ASSERT_SOFT_HARD_LIMITS \
60 if (softmin < hardmin || softmax > hardmax) { \
61 CLOG_ERROR(&LOG, "error with soft/hard limits: %s.%s", CONTAINER_RNA_ID(cont), identifier); \
62 BLI_assert_msg(0, "invalid soft/hard limits"); \
66# define ASSERT_SOFT_HARD_LIMITS (void)0
84 "dna_type=%s, dna_struct=%s, dna_name=%s, id=%s\n",
94 Link *link =
static_cast<Link *
>(vlink);
99 if (listbase->
last_) {
100 (
static_cast<Link *
>(listbase->
last_))->next = link;
102 if (listbase->
first_ ==
nullptr) {
105 listbase->
last_ = link;
110 Link *link =
static_cast<Link *
>(vlink);
119 if (listbase->
last_ == link) {
122 if (listbase->
first_ == link) {
130 MEM_delete(
static_cast<Link *
>(vlink));
137 for (link =
static_cast<Link *
>(listbase->
first_); link; link = next) {
148 brna->
structs.append(std::move(srna_ptr));
158static void rna_brna_structs_remove_and_free(BlenderRNA *brna, StructRNA *srna)
160 if (!brna->structs_map.is_empty()) {
162 if (srna->identifier[0] !=
'\0') {
163 brna->structs_map.remove(srna->identifier);
172 for (
int i = brna->structs.size() - 1; i >= 0; i--) {
173 if (brna->structs[i].get() == srna) {
174 brna->structs.remove(i);
190 if (dsrna->
srna == srna) {
205 for (; dprop; dprop = dprop->
prev) {
206 if (dprop->
prop == prop) {
214 for (; dprop; dprop = dprop->
prev) {
215 if (dprop->
prop == prop) {
232 if (dfunc->
func == func) {
241 if (dfunc->
func == func) {
260 for (; dparm; dparm = dparm->
prev) {
261 if (dparm->
prop == parm) {
272 for (; dparm; dparm = dparm->
prev) {
273 if (dparm->
prop == parm) {
314 const int member_idx,
315 const void *base_default_data)
319 if (base_default_data) {
323 static_cast<const char *
>(member_default_data) -
324 static_cast<const char *
>(struct_default_base));
327 return member_default_data;
334 const void *base_default_data =
nullptr)
337 if (struct_idx == -1) {
342 for (
const int member_idx : ps.
members.index_range()) {
355 r_dp->dnaarraylength = remainder.
is_empty() ?
358 r_dp->dnapointerlevel = 0;
360 r_dp->dnapointerlevel++;
362 r_dp->dnadefaultdata =
rna_default_data(struct_idx, member_idx, base_default_data);
368 const void *nested_default_data =
nullptr;
372 nested_default_data =
rna_default_data(struct_idx, member_idx, base_default_data);
402 static const std::pair<const char *, RnaDnaTypeInfo> table[] = {
403 {
"char", {
sizeof(char),
true, CHAR_MIN, CHAR_MAX}},
404 {
"uchar", {
sizeof(
uchar),
true, 0, UCHAR_MAX}},
407 {
"short", {
sizeof(short),
true, SHRT_MIN,
SHRT_MAX}},
409 {
"int", {
sizeof(int),
true, INT_MIN,
INT_MAX}},
410 {
"float", {
sizeof(
float),
false, }},
411 {
"int64_t", {
sizeof(
int64_t),
false, }},
412 {
"uint64_t",{
sizeof(
uint64_t),
false, }},
413 {
"double", {
sizeof(double),
false, }},
416 for (
const auto &[name, info] : table) {
417 if (dnatype == name) {
439 "and",
"as",
"assert",
"async",
"await",
"break",
"class",
"continue",
"def",
440 "del",
"elif",
"else",
"except",
"finally",
"for",
"from",
"global",
"if",
441 "import",
"in",
"is",
"lambda",
"nonlocal",
"not",
"or",
"pass",
"raise",
442 "return",
"try",
"while",
"with",
"yield",
nullptr,
461 if (!isalpha(identifier[0]) && identifier[0] !=
'_') {
463 *r_error =
"first character failed isalpha() check";
468 for (a = 0; identifier[a]; a++) {
471 if (isalpha(identifier[a]) && isupper(identifier[a])) {
473 *r_error =
"property names must contain lower case characters only";
480 if (identifier[a] ==
'_') {
484 if (identifier[a] ==
' ') {
486 *r_error =
"spaces are not okay in identifier names";
491 if (isalnum(identifier[a]) == 0) {
493 *r_error =
"one of the characters failed an isalnum() check and is not an underscore";
502 *r_error =
"this keyword is reserved by Python";
512 *r_error =
"this keyword is reserved by Python";
524 if (identifier[0] ==
'\0') {
530 if (!isalpha(identifier[0]) && identifier[0] !=
'_') {
535 for (a = 0; identifier[a]; a++) {
538 if (isalpha(identifier[a]) && isupper(identifier[a])) {
540 identifier[a] = tolower(identifier[a]);
545 if (identifier[a] ==
'_') {
549 if (identifier[a] ==
' ') {
554 if (isalnum(identifier[a]) == 0) {
564 identifier[strlen(identifier) - 1] =
'_';
574 identifier[strlen(identifier) - 1] =
'_';
585 BlenderRNA *brna = MEM_new<BlenderRNA>(__func__);
593 BlenderRNA *brna = MEM_new<BlenderRNA>(__func__);
614 for (dfunc = ds->
functions.first(); dfunc;
681 const char *srna_identifier =
"UNKNOWN";
686 "RNA Struct definition '%s' freed while holding a Python reference.\n",
691 for (prop = srna->
cont.
properties.first(); prop; prop = nextprop) {
692 nextprop = prop->
next;
701 for (
const std::unique_ptr<FunctionRNA> &func : srna->
functions) {
702 for (parm = func->cont.properties.first(); parm; parm = nextparm) {
703 nextparm = parm->
next;
715 rna_brna_structs_remove_and_free(brna, srna);
726 for (std::unique_ptr<StructRNA> &srna : brna->
structs) {
727 for (std::unique_ptr<FunctionRNA> &func : srna->functions) {
742 for (
auto srna = brna->
structs.rbegin(); srna != brna->
structs.rend(); srna++) {
785 if (ds->
srna == srna) {
801 const char *error =
nullptr;
804 CLOG_ERROR(&
LOG,
"struct identifier \"%s\" error - %s", identifier, error);
809 auto srna_ptr = std::make_unique<StructRNA>();
810 srna = srna_ptr.get();
821 srna->
reg = srnafrom->
reg;
827 srna->
base = srnafrom;
842 srna->
name = identifier;
847 srna->
icon = ICON_DOT;
858 StructDefRNA *ds = MEM_new<StructDefRNA>(
"StructDefRNA");
871 MEM_new<CustomIDVectorSet<PropertyRNA *, PropertyRNAIdentifierGetter>>(__func__);
891 "rna_builtin_properties_begin",
892 "rna_builtin_properties_next",
893 "rna_iterator_listbase_end",
894 "rna_builtin_properties_get",
897 "rna_builtin_properties_lookup_string",
935 CLOG_ERROR(&
LOG,
"struct %s not found to define %s.", from, identifier);
972 CLOG_ERROR(&
LOG,
"%s base struct must know DNA already.", structname);
995 "\"%s.%s\", must be a string property.",
1000 else if (srna->
nameproperty !=
nullptr && !allow_replace) {
1002 "\"%s.%s\", name property is already set.",
1033 srna->
flag &= ~flag;
1065 if (!system_idproperties) {
1069 const_cast<char *
>(system_idproperties));
1072 srna,
"bl_system_properties_get",
"rna_struct_system_properties_get_func");
1075 "DEBUG ONLY. Internal access to runtime-defined RNA data storage, intended solely for "
1076 "testing and debugging purposes. Do not access it in regular scripting work, and in "
1077 "particular, do not assume that it contains writable data");
1083 "Ensure that system properties are created if they do not exist yet");
1086 "system_properties",
1089 "The system properties root container, or None if there are no system properties stored in "
1090 "this data yet, and its creation was not requested");
1097 const char *instance)
1120 srna->
path = path_fn;
1128 if (identifier != srna->identifier) {
1129 if (srna->identifier[0] !=
'\0') {
1130 brna->structs_map.remove(srna->identifier);
1132 if (identifier[0] !=
'\0') {
1133 brna->structs_map.add(
UString(identifier), srna);
1138 srna->identifier =
UString(identifier);
1143 srna->identifier =
UString(identifier);
1166 const char *identifier_c_str,
1173 const UString identifier(identifier_c_str);
1178 const char *error =
nullptr;
1182 "property identifier \"%s.%s\" - %s",
1201 dprop = MEM_new<PropertyDefRNA>(
"PropertyDefRNA");
1204#elif !defined(NDEBUG)
1206 const char *error =
nullptr;
1209 "runtime property identifier \"%s.%s\" - %s",
1226 "subtype does not apply to 'PROP_BOOLEAN' \"%s.%s\"",
1228 identifier.
c_str());
1239 "subtype does not apply to 'PROP_INT' \"%s.%s\"",
1241 identifier.
c_str());
1398 switch (prop->
type) {
1406 "\"%s.%s\", PROP_ENUM_FLAG must be set before setting items",
1432 prop->
flag &= ~flag;
1460 prop->
flag |= flag_property;
1468 prop->
flag &= ~flag_property;
1489 "\"%s.%s\", array length must be zero of greater.",
1498 "\"%s.%s\", array length must be smaller than %d.",
1508 "\"%s.%s\", array dimensions has been set to %u but would be overwritten as 1.",
1526 "\"%s.%s\", cannot define a bitflags boolean array wrapping a scalar DNA member. "
1527 "`RNA_def_property_boolean_bitset_array_sdna` should be used instead.",
1536 switch (prop->
type) {
1546 "\"%s.%s\", only boolean/int/float can be array.",
1569 "\"%s.%s\", array dimension must be between 1 and %d.",
1577 switch (prop->
type) {
1584 "\"%s.%s\", only boolean/int/float can be array.",
1598 for (i = 1; i < dimension; i++) {
1618 const short version,
1619 const short removal_version)
1630 "Deprecation version is set in a future version of Blender");
1636 "\nWARNING: \"%s.%s\" deprecation starting at %d.%d marks this property to be removed "
1637 "in the current Blender version!\n\n",
1645 deprecated->
note = note;
1646 deprecated->
version = version;
1655 if (consecutive != 0) {
1658 if (consecutive < 0) {
1676 "\"%s.%s\", step outside range.",
1690 "\"%s.%s\", precision outside range.",
1697 switch (prop->
type) {
1715 "\"%s.%s\", invalid type for ui range.",
1727 switch (prop->
type) {
1740 "\"%s.%s\", invalid type for scale.",
1759 switch (prop->
type) {
1778 "\"%s.%s\", invalid type for range.",
1791 switch (prop->
type) {
1804 "\"%s.%s\", invalid type for struct type.",
1817 const bool is_id_type = (type->flag &
STRUCT_ID) != 0;
1819 switch (prop->type) {
1821 PointerPropertyRNA *pprop =
reinterpret_cast<PointerPropertyRNA *
>(prop);
1822 pprop->pointer_type = type;
1829 "\"%s.%s\", this struct type (probably an Operator, Keymap or UserPreference) "
1830 "does not accept ID pointer properties.",
1832 prop->identifier.c_str());
1854 "\"%s.%s\", invalid type for struct type.",
1856 prop->identifier.c_str());
1870 switch (prop->
type) {
1878 "\"%s.%s\", invalid type for struct type.",
1889 int i, defaultfound = 0, defaultflag = 0;
1891 switch (prop->
type) {
1896 int enum_dna_size = -1;
1897 int enum_dna_value_min = 0, enum_dna_value_max = 0;
1900 if (dp->dnatype.is_empty()) {
1904 else if (dp->dnaarraylength > 1) {
1908 type_info.
size == 0)
1913 enum_dna_size = type_info.size;
1914 if (!type_info.is_integer) {
1916 "\"%s.%s\", enum type \"%s\" size is not known.",
1919 dp->dnatype.c_str());
1922 enum_dna_value_min = type_info.value_min;
1923 enum_dna_value_max = type_info.value_max;
1935 if (item[i].identifier[0]) {
1938 if (strstr(item[i].identifier,
" ")) {
1940 "\"%s.%s\", enum identifiers must not contain spaces.",
1948 if (enum_dna_size != -1) {
1951 if (enum_dna_size == 1) {
1952 enum_type_mask = 0xff;
1954 else if (enum_dna_size == 2) {
1955 enum_type_mask = 0xffff;
1957 if (enum_type_mask != 0) {
1958 if (
uint32_t(item[i].value) != (
uint32_t(item[i].value) & enum_type_mask)) {
1960 "\"%s.%s\", enum value for '%s' does not fit into %d byte(s).",
1971 if (
ELEM(enum_dna_size, 1, 2)) {
1972 if ((item[i].value < enum_dna_value_min) || (item[i].value > enum_dna_value_max)) {
1974 "\"%s.%s\", enum value for '%s' is outside of range [%d - %d].",
1979 enum_dna_value_max);
1989 defaultflag |= item[i].
value;
2006 if (!defaultfound) {
2008 if (item[i].identifier[0]) {
2020 "\"%s.%s\", invalid type for struct type.",
2032 switch (prop->
type) {
2040 "\"%s.%s\", type is not string.",
2052 switch (prop->
type) {
2068 "\"%s.%s\", type is not boolean.",
2080 switch (prop->
type) {
2088 "\"%s.%s\", type is not boolean.",
2100 switch (prop->
type) {
2124 switch (prop->
type) {
2148 switch (prop->
type) {
2162 "\"%s.%s\", type is not float.",
2173 switch (prop->
type) {
2187 "\"%s.%s\", type is not float.",
2199 switch (prop->
type) {
2203 if (value ==
nullptr) {
2205 "\"%s.%s\", nullptr string passed (don't call in this case).",
2214 "\"%s.%s\", empty string passed (don't call in this case).",
2232 "\"%s.%s\", type is not string.",
2243 int i, defaultfound = 0;
2245 switch (prop->
type) {
2253 for (i = 0; i < eprop->
totitem; i++) {
2261 "\"%s.%s\", default includes unused bits (%d).",
2269 for (i = 0; i < eprop->
totitem; i++) {
2275 if (!defaultfound && eprop->
totitem) {
2281 "\"%s.%s\", default is not in items.",
2293 "\"%s.%s\", type is not enum.",
2306 const char *structname,
2307 const char *propname)
2313 if (dp ==
nullptr) {
2339 "\"%s.%s\" (identifier \"%s\") not found. Struct must be in DNA.",
2370 const char *structname,
2371 const char *propname,
2373 const bool booleannegative,
2382 "\"%s.%s\", type is not boolean.",
2395 if (booleanbit <= 0) {
2397 "%s.%s is using a null or negative 'booleanbit' value of %" PRId64
2398 ", which is invalid "
2399 "for 'bitset arrays' boolean properties.",
2408 if ((booleanbit & ~(1 << bit_index)) != 0) {
2410 "%s.%s is using a multi-bit 'booleanbit' value of %" PRId64
2411 ", which is invalid for "
2412 "'bitset arrays' boolean properties.",
2430 "%s.%s is a '%s' but wrapped as type '%s'.",
2440 const bool is_bitset_array = (
length > 1);
2441 if (is_bitset_array) {
2445 const short max_length = (dna_size * 8) -
2447 if ((bit_index +
length) > max_length) {
2449 "%s.%s is a '%s' of %d bytes, but wrapped as type '%s' 'bitset array' of %d "
2450 "items starting at bit %u.",
2472 bool has_default =
true;
2474 has_default =
false;
2476 fprintf(stderr,
"%s default: unsupported boolean array default\n", __func__);
2483 else if (dp->
dnatype ==
"short") {
2486 else if (dp->
dnatype ==
"int") {
2490 has_default =
false;
2493 "%s default: unsupported boolean type (%s)\n",
2514 const char *structname,
2515 const char *propname,
2522 const char *structname,
2523 const char *propname,
2530 const char *structname,
2531 const char *propname,
2557 "%s.%s is a '%s' but wrapped as type '%s'.",
2576 "\"%s.%s\", type \"%s\" range not known.",
2598 bool has_default =
true;
2603 const void *default_data_end =
POINTER_OFFSET(default_data, dna_size);
2606 int *defaultarray =
static_cast<int *
>(
rna_calloc(size_final));
2607 for (
int i = 0; i < prop->
totarraylength && default_data < default_data_end; i++) {
2608 defaultarray[i] = *(
const char *)default_data;
2613 else if (dp->
dnatype ==
"short") {
2614 int *defaultarray =
static_cast<int *
>(
rna_calloc(size_final));
2615 for (
int i = 0; i < prop->
totarraylength && default_data < default_data_end; i++) {
2617 *(
const ushort *)default_data;
2622 else if (dp->
dnatype ==
"int") {
2623 int *defaultarray =
static_cast<int *
>(
rna_calloc(size_final));
2624 memcpy(defaultarray, default_data, std::min(size_final, dna_size));
2628 has_default =
false;
2631 "%s default: unsupported int array type (%s)\n",
2639 fprintf(stderr,
"value=(");
2643 fprintf(stderr,
"), ");
2652 else if (dp->
dnatype ==
"short") {
2657 else if (dp->
dnatype ==
"int") {
2663 has_default =
false;
2666 stderr,
"%s default: unsupported int type (%s)\n", __func__, dp->
dnatype.
c_str());
2701 "%s.%s is a '%s' but wrapped as type '%s'.",
2719 bool has_default =
true;
2725 float *defaultarray =
static_cast<float *
>(
rna_calloc(size_final));
2726 memcpy(defaultarray, dp->
dnadefaultdata, std::min(size_final, dna_size));
2730 has_default =
false;
2733 "%s default: unsupported float array type (%s)\n",
2741 fprintf(stderr,
"value=(");
2745 fprintf(stderr,
"), ");
2754 else if (dp->
dnatype ==
"char") {
2758 has_default =
false;
2761 "%s default: unsupported float type (%s)\n",
2799 CLOG_ERROR(&
LOG,
"\"%s.%s\", array not supported for enum type.", structname, propname);
2806 bool has_default =
true;
2810 else if (dp->
dnatype ==
"short") {
2813 else if (dp->
dnatype ==
"int") {
2817 has_default =
false;
2820 stderr,
"%s default: unsupported enum type (%s)\n", __func__, dp->
dnatype.
c_str());
2835 const char *structname,
2836 const char *propname)
2857 "\"%s.%s\", type is not string.",
2876 fprintf(stderr,
"value=\"%s\", ", sprop->
defaultvalue);
2890 "\"%s.%s\", type is not pointer.",
2903 CLOG_ERROR(&
LOG,
"\"%s.%s\", array not supported for pointer type.", structname, propname);
2911 const char *structname,
2912 const char *propname,
2913 const char *lengthpropname)
2921 "\"%s.%s\", type is not collection.",
2934 CLOG_ERROR(&
LOG,
"\"%s.%s\", array of collections not supported.", structname, propname);
2939 if (dp->
dnatype ==
"ListBase") {
2946 if (dp && lengthpropname) {
2954 if (lengthpropname[0] == 0) {
2977 CLOG_ERROR(&
LOG,
"\"%s.%s\" not found.", structname, lengthpropname);
3025 if (description_func) {
3027 const_cast<char *
>(description_func));
3054 switch (prop->
type) {
3078 "\"%s.%s\", type is not boolean.",
3135 if (getfunc || setfunc) {
3144 if (get_transform_fn) {
3147 if (set_transform_fn) {
3168 if (getfunc || setfunc) {
3177 if (get_transform_fn) {
3180 if (set_transform_fn) {
3193 switch (prop->
type) {
3246 if (getfunc || setfunc) {
3255 if (get_transform_fn) {
3258 if (set_transform_fn) {
3282 if (getfunc || setfunc) {
3291 if (get_transform_fn) {
3294 if (set_transform_fn) {
3307 switch (prop->
type) {
3334 "\"%s.%s\", type is not float.",
3362 if (getfunc || setfunc) {
3371 if (get_transform_fn) {
3374 if (set_transform_fn) {
3399 if (getfunc || setfunc) {
3408 if (get_transform_fn) {
3411 if (set_transform_fn) {
3424 switch (prop->
type) {
3441 "\"%s.%s\", type is not enum.",
3469 if (getfunc || setfunc) {
3478 if (get_transform_fn) {
3481 if (set_transform_fn) {
3494 switch (prop->
type) {
3511 "\"%s.%s\", type is not string.",
3527 switch (prop->
type) {
3531 if (search !=
nullptr) {
3538 "\"%s.%s\", type is not string.",
3552 switch (prop->
type) {
3556 const_cast<char *
>(
filter));
3561 "\"%s.%s\", type is not string.",
3589 if (getfunc || setfunc) {
3598 if (get_transform_fn) {
3601 if (set_transform_fn) {
3612 sprop->
search = search_fn;
3613 if (search_fn !=
nullptr) {
3625 pprop->
get = getfunc;
3628 pprop->
set = setfunc;
3643 PropertyRNA *prop,
const char *get,
const char *set,
const char *type_fn,
const char *poll)
3647 switch (prop->
type) {
3667 "\"%s.%s\", type is not pointer.",
3683 const char *lookupint,
3684 const char *lookupstring,
3685 const char *assignint)
3689 switch (prop->
type) {
3710 const_cast<char *
>(lookupint));
3714 const_cast<char *
>(lookupstring));
3718 const_cast<char *
>(assignint));
3724 "\"%s.%s\", type is not collection.",
3738 switch (prop->
type) {
3744 const_cast<char *
>(get_default));
3750 const_cast<char *
>(get_default));
3757 "\"%s.%s\", type is not float.",
3772 switch (prop->
type) {
3778 const_cast<char *
>(get_default));
3803 switch (prop->
type) {
3809 const_cast<char *
>(get_default));
3815 const_cast<char *
>(get_default));
3822 "\"%s.%s\", type is not boolean.",
3837 switch (prop->
type) {
3851 "\"%s.%s\", type is not enum.",
3866 switch (prop->
type) {
3874 "\"%s.%s\", type is not string.",
3886 const char *error =
nullptr;
3888 CLOG_ERROR(&
LOG,
"struct identifier \"%s\" error - %s", type, error);
3893 prop->
srna =
reinterpret_cast<StructRNA *
>(
const_cast<char *
>(type));
3904 const char *identifier,
3905 const bool default_value,
3906 const char *ui_name,
3907 const char *ui_description)
3920 const char *identifier,
3922 const bool *default_value,
3923 const char *ui_name,
3924 const char *ui_description)
3933 if (default_value) {
3942 const char *identifier,
3944 const bool *default_value,
3945 const char *ui_name,
3946 const char *ui_description)
3955 if (default_value) {
3964 const char *identifier,
3966 const bool *default_value,
3967 const char *ui_name,
3968 const char *ui_description)
3977 if (default_value) {
3986 const char *identifier,
3988 const bool *default_value,
3989 const char *ui_name,
3990 const char *ui_description)
3999 if (default_value) {
4008 const char *identifier,
4009 const int default_value,
4012 const char *ui_name,
4013 const char *ui_description,
4024 if (hardmin != hardmax) {
4034 const char *identifier,
4036 const int *default_value,
4039 const char *ui_name,
4040 const char *ui_description,
4053 if (default_value) {
4056 if (hardmin != hardmax) {
4066 const char *identifier,
4068 const int *default_value,
4071 const char *ui_name,
4072 const char *ui_description,
4085 if (default_value) {
4088 if (hardmin != hardmax) {
4098 const char *identifier,
4099 const char *default_value,
4101 const char *ui_name,
4102 const char *ui_description)
4107 BLI_assert(default_value ==
nullptr || default_value[0]);
4113 if (default_value) {
4122 const char *identifier,
4123 const char *default_value,
4125 const char *ui_name,
4126 const char *ui_description)
4131 BLI_assert(default_value ==
nullptr || default_value[0]);
4137 if (default_value) {
4146 const char *identifier,
4147 const char *default_value,
4149 const char *ui_name,
4150 const char *ui_description)
4155 BLI_assert(default_value ==
nullptr || default_value[0]);
4161 if (default_value) {
4170 const char *identifier,
4171 const char *default_value,
4173 const char *ui_name,
4174 const char *ui_description)
4179 BLI_assert(default_value ==
nullptr || default_value[0]);
4185 if (default_value) {
4194 const char *identifier,
4196 const int default_value,
4197 const char *ui_name,
4198 const char *ui_description)
4203 if (items ==
nullptr) {
4217 const char *identifier,
4219 const int default_value,
4220 const char *ui_name,
4221 const char *ui_description)
4226 if (items ==
nullptr) {
4247 const char *identifier,
4248 const float default_value,
4249 const float hardmin,
4250 const float hardmax,
4251 const char *ui_name,
4252 const char *ui_description,
4253 const float softmin,
4254 const float softmax)
4263 if (hardmin != hardmax) {
4273 const char *identifier,
4275 const float *default_value,
4276 const float hardmin,
4277 const float hardmax,
4278 const char *ui_name,
4279 const char *ui_description,
4280 const float softmin,
4281 const float softmax)
4292 if (default_value) {
4295 if (hardmin != hardmax) {
4305 const char *identifier,
4307 const float *default_value,
4308 const float hardmin,
4309 const float hardmax,
4310 const char *ui_name,
4311 const char *ui_description,
4312 const float softmin,
4313 const float softmax)
4333 const char *identifier,
4335 const float *default_value,
4336 const float hardmin,
4337 const float hardmax,
4338 const char *ui_name,
4339 const char *ui_description,
4340 const float softmin,
4341 const float softmax)
4352 if (default_value) {
4355 if (hardmin != hardmax) {
4365 const char *identifier,
4368 const float *default_value,
4369 const float hardmin,
4370 const float hardmax,
4371 const char *ui_name,
4372 const char *ui_description,
4373 const float softmin,
4374 const float softmax)
4378 const int length[2] = {rows, columns};
4384 if (default_value) {
4387 if (hardmin != hardmax) {
4397 const char *identifier,
4399 const float *default_value,
4400 const float hardmin,
4401 const float hardmax,
4402 const char *ui_name,
4403 const char *ui_description,
4404 const float softmin,
4405 const float softmax)
4427 const char *identifier,
4429 const float *default_value,
4430 const float hardmin,
4431 const float hardmax,
4432 const char *ui_name,
4433 const char *ui_description,
4434 const float softmin,
4435 const float softmax)
4445 if (default_value) {
4453 if (hardmin != hardmax) {
4463 const char *identifier,
4464 const float default_value,
4465 const float hardmin,
4466 const float hardmax,
4467 const char *ui_name,
4468 const char *ui_description,
4469 const float softmin,
4470 const float softmax)
4487 const char *identifier,
4489 const float *default_value,
4490 const float hardmin,
4491 const float hardmax,
4492 const char *ui_name,
4493 const char *ui_description,
4494 const float softmin,
4495 const float softmax)
4506 if (default_value) {
4509 if (hardmin != hardmax) {
4519 const char *identifier,
4520 const float default_value,
4521 const float hardmin,
4522 const float hardmax,
4523 const char *ui_name,
4524 const char *ui_description,
4525 const float softmin,
4526 const float softmax)
4535 if (hardmax < 2.0f) {
4537 "Percentage property with incorrect range: %s.%s",
4545 if (hardmin != hardmax) {
4555 const char *identifier,
4556 const float default_value,
4557 const float hardmin,
4558 const float hardmax,
4559 const char *ui_name,
4560 const char *ui_description,
4561 const float softmin,
4562 const float softmax)
4571 if (hardmin != hardmax) {
4582 const char *identifier,
4584 const char *ui_name,
4585 const char *ui_description)
4598 const char *identifier,
4600 const char *ui_name,
4601 const char *ui_description)
4603 ContainerRNA *cont =
static_cast<ContainerRNA *
>(cont_);
4619 const char *identifier,
4621 const char *ui_name,
4622 const char *ui_description)
4635 const char *identifier,
4637 const char *ui_name,
4638 const char *ui_description)
4640 ContainerRNA *cont =
static_cast<ContainerRNA *
>(cont_);
4656 const char *error =
nullptr;
4663 auto func_ptr = std::make_unique<FunctionRNA>();
4664 auto *func = func_ptr.get();
4665 func->identifier = identifier;
4666 func->description = identifier.
c_str();
4668 srna->
functions.append(std::move(func_ptr));
4686 const UString identifier(identifier_c_str);
4688 if (std::find_if(srna->
functions.begin(),
4690 [&](
const auto &func) { return func->identifier == identifier; }) !=
4726 "\"%s.%s\", dynamic values are not allowed as strict returns, "
4727 "use RNA_def_function_output instead.",
4729 ret->identifier.c_str());
4732 if (
ret->arraydimension) {
4734 "\"%s.%s\", arrays are not allowed as strict returns, "
4735 "use RNA_def_function_output instead.",
4737 ret->identifier.c_str());
4761 "FUNC_SELF_AS_RNA and FUNC_NO_SELF are mutually exclusive");
4783 return sizeof(bool) *
len;
4785 return sizeof(int) *
len;
4795 return sizeof(bool);
4800 return sizeof(
float);
4808 return sizeof(
char *);
4818 return sizeof(
void *);
4827 return sizeof(
void *);
4836 return sizeof(
void *);
4845 const int alignment =
sizeof(
void *);
4846 return (size + alignment - 1) & ~(alignment - 1);
4862 else if (tot >= 8 && (tot & (tot - 1)) == 0) {
4871 (*items)[tot] = *item;
4894 if (item->
value == value) {
4914 if (!srna->identifier.is_empty()) {
4917 brna->structs_map.remove(srna->identifier);
4918 brna->structs_map.add(srna->identifier, srna);
4924 if (srna->description) {
4925 srna->description =
BLI_strdup(srna->description);
4934 if (!srna->identifier.is_empty()) {
4936 if (brna !=
nullptr) {
4937 brna->structs_map.remove(srna->identifier);
4942 MEM_delete(srna->name);
4944 if (srna->description) {
4945 MEM_delete(srna->description);
4952 if (func->description) {
4953 func->description =
BLI_strdup(func->description);
4962 if (func->description) {
4963 MEM_delete(func->description);
4975 if (prop->description) {
4976 prop->description =
BLI_strdup(prop->description);
4979 switch (prop->type) {
4983 if (bprop->defaultarray) {
4985 "RNA_def_property_store");
4986 memcpy(array, bprop->defaultarray,
sizeof(
bool) * prop->totarraylength);
4987 bprop->defaultarray = array;
4994 if (iprop->defaultarray) {
4996 "RNA_def_property_store");
4997 memcpy(array, iprop->defaultarray,
sizeof(
int) * prop->totarraylength);
4998 iprop->defaultarray = array;
5007 size_t(eprop->totitem) + 1,
"RNA_def_property_store");
5008 memcpy(array, eprop->item,
sizeof(*array) * (eprop->totitem + 1));
5009 eprop->item = array;
5011 for (a = 0; a < eprop->totitem; a++) {
5012 if (array[a].identifier) {
5013 array[a].identifier =
BLI_strdup(array[a].identifier);
5015 if (array[a].name) {
5018 if (array[a].description) {
5019 array[a].description =
BLI_strdup(array[a].description);
5028 if (fprop->defaultarray) {
5030 "RNA_def_property_store");
5031 memcpy(array, fprop->defaultarray,
sizeof(
float) * prop->totarraylength);
5032 fprop->defaultarray = array;
5038 if (sprop->defaultvalue) {
5039 sprop->defaultvalue =
BLI_strdup(sprop->defaultvalue);
5050static void (*g_py_data_clear_fn)(
PropertyRNA *prop) =
nullptr;
5060 g_py_data_clear_fn = py_data_clear_fn;
5068 if (g_py_data_clear_fn) {
5069 g_py_data_clear_fn(prop);
5073 MEM_delete(prop->name);
5075 if (prop->description) {
5076 MEM_delete(prop->description);
5078 if (prop->py_data) {
5081 if (prop->deprecated) {
5082 MEM_delete(prop->deprecated);
5085 switch (prop->type) {
5088 if (bprop->defaultarray) {
5089 MEM_delete(bprop->defaultarray);
5095 if (iprop->defaultarray) {
5096 MEM_delete(iprop->defaultarray);
5102 if (fprop->defaultarray) {
5103 MEM_delete(fprop->defaultarray);
5110 for (a = 0; a < eprop->totitem; a++) {
5111 if (eprop->item[a].identifier) {
5112 MEM_delete(eprop->item[a].identifier);
5114 if (eprop->item[a].name) {
5115 MEM_delete(eprop->item[a].name);
5117 if (eprop->item[a].description) {
5118 MEM_delete(eprop->item[a].description);
5123 MEM_delete(eprop->item);
5129 if (sprop->defaultvalue) {
5130 MEM_delete(sprop->defaultvalue);
5145 if (cont->prop_lookup_set) {
5146 cont->prop_lookup_set->remove_as(prop->identifier);
5159 const UString identifier(identifier_c_str);
5160 for (
PropertyRNA *prop = cont->properties.first(); prop; prop = prop->
next) {
5161 if (prop->identifier == identifier) {
5172 PropertyRNA *prop = rna_def_property_find_py_id(cont, identifier);
5173 if (prop !=
nullptr) {
5175 rna_def_property_free(cont, prop);
5184 const char *identifier,
5188 PropertyRNA *prop = rna_def_property_find_py_id(cont, identifier);
5189 if (prop !=
nullptr) {
5205 rna_def_property_free(cont, prop);
5214 return "PROP_BOOLEAN";
5218 return "PROP_FLOAT";
5220 return "PROP_STRING";
5224 return "PROP_POINTER";
5226 return "PROP_COLLECTION";
5229 return "PROP_UNKNOWN";
#define BLT_I18NCONTEXT_DEFAULT_BPYRNA
#define CLOG_ERROR(clg_ref,...)
#define CLOG_WARN(clg_ref,...)
Read Blender memory allocation and freeing.
#define RNA_MAX_ARRAY_LENGTH
#define RNA_MAX_ARRAY_DIMENSION
#define RNA_ENUM_ITEM_SEPR
#define RNA_TRANSLATION_PREC_DEFAULT
#define UI_PRECISION_FLOAT_MAX
#define BLI_assert_unreachable()
#define POINTER_OFFSET(v, ofs)
#define BLI_assert_msg(a, msg)
constexpr StringRef drop_known_prefix(StringRef prefix) const
const char * c_str() const
constexpr bool startswith(StringRef prefix) const
constexpr bool is_empty() const
constexpr const char * c_str() const
IMETHOD Vector diff(const Vector &a, const Vector &b, double dt)
VecBase< float, D > step(VecOp< float, D >, VecOp< float, D >) RET
float length(VecOp< float, D >) RET
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
static const void * rna_default_data(const int struct_idx, const int member_idx, const void *base_default_data)
void RNA_def_property_srna(PropertyRNA *prop, const char *type)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
bool(*)(PointerRNA *ptr, PropertyRNA *prop, bool value, bool is_set) BooleanPropertyGetTransformFunc
void RNA_def_enum_funcs(PropertyRNA *prop, EnumPropertyItemFunc itemfunc)
PropertyRNA * RNA_def_string_file_path(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
void RNA_def_property_tags(PropertyRNA *prop, int tags)
void RNA_def_property_editable_func(PropertyRNA *prop, const char *editable)
void RNA_def_property_boolean_funcs_runtime(PropertyRNA *prop, BooleanPropertyGetFunc getfunc, BooleanPropertySetFunc setfunc, BooleanPropertyGetTransformFunc get_transform_fn, BooleanPropertySetTransformFunc set_transform_fn)
unsigned __int64 uint64_t
static bool rna_find_sdna_member(const StringRef structname, const StringRef path, PropertyDefRNA *r_dp=nullptr, const void *base_default_data=nullptr)
void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
void RNA_def_property_deprecated(PropertyRNA *prop, const char *note, const short version, const short removal_version)
bool(*)(PointerRNA *ptr, const char *key, PointerRNA *r_ptr) PropCollectionLookupStringFunc
void(*)(PointerRNA *ptr, int value) PropEnumSetFunc
void RNA_def_property_float_funcs_runtime(PropertyRNA *prop, FloatPropertyGetFunc getfunc, FloatPropertySetFunc setfunc, FloatPropertyRangeFunc rangefunc, FloatPropertyGetTransformFunc get_transform_fn, FloatPropertySetTransformFunc set_transform_fn)
void RNA_def_property_dynamic_array_funcs(PropertyRNA *prop, const char *getlength)
BlenderRNA * RNA_create_runtime()
void(*)(PointerRNA *ptr, bool *values) PropBooleanArrayGetFunc
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void(*)(PointerRNA *ptr, PropertyRNA *prop, const int *new_values, const int *curr_values, bool is_set, int *r_values) IntArrayPropertySetTransformFunc
bool(*)(Main *bmain, PointerRNA *ptr_local, PointerRNA *ptr_reference, PointerRNA *ptr_storage, PropertyRNA *prop_local, PropertyRNA *prop_reference, PropertyRNA *prop_storage, int len_local, int len_reference, int len_storage, IDOverrideLibraryPropertyOperation *opop) RNAPropOverrideStore
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
bool is_dnatype_boolean_compat(const StringRef dnatype)
void RNA_def_function_output(FunctionRNA *, PropertyRNA *ret)
void RNA_def_property_boolean_bitset_array_sdna(PropertyRNA *prop, const char *structname, const char *propname, const int64_t booleanbit, const int length)
void RNA_def_property_boolean_negative_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_property_enum_default(PropertyRNA *prop, int value)
void RNA_def_property_free_pointers_set_py_data_callback(void(*py_data_clear_fn)(PropertyRNA *prop))
void RNA_def_property_free_identifier_deferred_finish(StructOrFunctionRNA *cont_, void *handle)
void RNA_def_struct_identifier(BlenderRNA *brna, StructRNA *srna, const char *identifier)
@ STRUCT_PUBLIC_NAMESPACE_INHERIT
@ STRUCT_PUBLIC_NAMESPACE
@ STRUCT_NO_DATABLOCK_IDPROPERTIES
void RNA_def_property_override_funcs(PropertyRNA *prop, const char *diff, const char *store, const char *apply)
void rna_builtin_properties_begin(CollectionPropertyIterator *iter, PointerRNA *ptr)
void RNA_def_property_boolean_array_default(PropertyRNA *prop, const bool *array)
int(*)(PointerRNA *ptr, PropertyRNA *prop, int value, bool is_set) EnumPropertyGetTransformFunc
void RNA_def_property_enum_default_func(PropertyRNA *prop, const char *get_default)
void(*)(PointerRNA *ptr, PropertyRNA *prop, bool *r_values) BooleanArrayPropertyGetFunc
void RNA_def_property_ui_scale_type(PropertyRNA *prop, PropertyScaleType ui_scale_type)
float(*)(PointerRNA *ptr, PropertyRNA *prop) PropFloatGetFuncEx
bool is_dnatype_float_compat(const StringRef dnatype)
void(*)(PointerRNA *ptr, PropertyRNA *prop, float *values) PropFloatArrayGetFuncEx
std::string(*)(PointerRNA *ptr, PropertyRNA *prop) StringPropertyGetFunc
void * MEM_new_array_uninitialized(size_t len, size_t size, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
void(*)(PointerRNA *ptr, PropertyRNA *prop, bool *values) PropBooleanArrayGetFuncEx
void RNA_def_property_float_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
static StructDefRNA * rna_find_def_struct(StructRNA *srna)
void RNA_def_property_ui_description_func(PropertyRNA *prop, const char *description_func)
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)
void RNA_def_property_collection_sdna(PropertyRNA *prop, const char *structname, const char *propname, const char *lengthpropname)
PropertyRNA * RNA_def_float_array(StructOrFunctionRNA *cont_, const char *identifier, const int len, const float *default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
void * rna_calloc(int buffer_size)
void * RNA_struct_py_type_get(StructRNA *srna)
bool(*)(PointerRNA *ptr, const PointerRNA value) PropPointerPollFunc
void(*)(PointerRNA *ptr, PropertyRNA *prop, const float *values) FloatArrayPropertySetFunc
PropertyRNA * RNA_def_float_color(StructOrFunctionRNA *cont_, const char *identifier, const int len, const float *default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
void RNA_def_struct_refine_func(StructRNA *srna, const char *refine)
int rna_parameter_size_pad(const int size)
int(*)(PointerRNA *ptr) PropStringLengthFunc
void(*)(PointerRNA *ptr, float *min, float *max, float *softmin, float *softmax) PropFloatRangeFunc
constexpr const char * PYTHON_KEYWORDS[]
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
void RNA_def_property_multi_array(PropertyRNA *prop, int dimension, const int length[])
void(*)(PointerRNA *ptr, PropertyRNA *prop, const bool *r_values) BooleanArrayPropertySetFunc
void RNA_def_struct_system_idprops_func(StructRNA *srna, const char *system_idproperties)
void(*)(PointerRNA *ptr, PropertyRNA *prop, float *values) FloatArrayPropertyGetFunc
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
PropertyRNA * RNA_def_boolean_vector(StructOrFunctionRNA *cont_, const char *identifier, const int len, const bool *default_value, const char *ui_name, const char *ui_description)
static void rna_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, const int64_t booleanbit, const bool booleannegative, const int length)
void(*)(PointerRNA *ptr, bool value) PropBooleanSetFunc
void RNA_def_property_string_funcs_runtime(PropertyRNA *prop, StringPropertyGetFunc getfunc, StringPropertyLengthFunc lengthfunc, StringPropertySetFunc setfunc, StringPropertyGetTransformFunc get_transform_fn, StringPropertySetTransformFunc set_transform_fn)
int rna_parameter_size(PropertyRNA *parm)
void rna_freelistN(ListBase *listbase)
bool is_dnatype_boolean_bitshift_fullrange_compat(const StringRef dnatype)
void RNA_define_lib_overridable(const bool make_overridable)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_int_vector(StructOrFunctionRNA *cont_, const char *identifier, const int len, const int *default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
void RNA_def_property_path_template_type(PropertyRNA *prop, PropertyPathTemplateType path_template_type)
int(*)(PointerRNA *ptr, PropertyRNA *prop) IntPropertyGetFunc
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
void(*)(PointerRNA *ptr, PropertyRNA *prop, const int *values) IntArrayPropertySetFunc
PropertyRNA * RNA_def_string_dir_path(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
IDProperty **(*)(PointerRNA *ptr) IDPropertiesFunc
void(*)(CollectionPropertyIterator *iter) PropCollectionNextFunc
void RNA_def_property_flag_hide_from_ui_workaround(PropertyRNA *prop)
std::optional< std::string >(*)(const bContext *C, PointerRNA *ptr, PropertyRNA *prop) StringPropertyPathFilterFunc
bool(*)(PointerRNA *ptr, PropertyRNA *prop, bool new_value, bool curr_value, bool is_set) BooleanPropertySetTransformFunc
PropertyRNA * RNA_def_collection_runtime(StructOrFunctionRNA *cont, const char *identifier, StructRNA *type, const char *ui_name, const char *ui_description)
void BPY_DECREF(void *pyob_ptr)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
void(*)(PointerRNA *ptr, const bool *values) PropBooleanArraySetFunc
void rna_addtail(ListBase *listbase, void *vlink)
void rna_freelinkN(ListBase *listbase, void *vlink)
PropertyRNA * RNA_def_boolean_array(StructOrFunctionRNA *cont_, const char *identifier, const int len, const bool *default_value, const char *ui_name, const char *ui_description)
void(*)(PointerRNA *ptr, PropertyRNA *prop, int value) EnumPropertySetFunc
PropertyRNA * RNA_def_float_translation(StructOrFunctionRNA *cont_, const char *identifier, const int len, const float *default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
static int rna_find_parsed_struct_index(const StringRef structname)
int(*)(const PointerRNA *ptr, int index) ItemEditableFunc
void rna_builtin_properties_next(CollectionPropertyIterator *iter)
StructDefRNA * rna_find_struct_def(StructRNA *srna)
void RNA_def_property_pointer_funcs_runtime(PropertyRNA *prop, PointerPropertyGetFunc getfunc, PointerPropertySetFunc setfunc, PointerPropertyTypeFunc typefunc)
void RNA_def_struct_nested(BlenderRNA *brna, StructRNA *srna, const char *structname)
void RNA_free(BlenderRNA *brna)
void MEM_delete_void(void *vmemh)
void RNA_def_property_string_maxlength(PropertyRNA *prop, int maxlength)
PropertyRNA * RNA_def_pointer_runtime(StructOrFunctionRNA *cont, const char *identifier, StructRNA *type, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_float_percentage(StructOrFunctionRNA *cont_, const char *identifier, const float default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
void RNA_def_property_enum_bitflag_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_define_animate_sdna(bool animate)
void RNA_def_property_duplicate_pointers(StructOrFunctionRNA *cont_, PropertyRNA *prop)
void RNA_def_property_pointer_default_runtime(PropertyRNA *prop, uint32_t id_session_uid)
const float rna_default_axis_angle[4]
void RNA_def_property_float_array_default(PropertyRNA *prop, const float *array)
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
PropertyRNA * RNA_def_float_vector(StructOrFunctionRNA *cont_, const char *identifier, const int len, const float *default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
void(*)(PointerRNA *ptr, float value) PropFloatSetFunc
void RNA_def_property_float_default(PropertyRNA *prop, float value)
void(*)(PointerRNA *ptr, PropertyRNA *prop, int *values) IntArrayPropertyGetFunc
void RNA_def_struct_free_pointers(BlenderRNA *brna, StructRNA *srna)
void(*)(PointerRNA *ptr, PropertyRNA *prop, int *min, int *max, int *softmin, int *softmax) IntPropertyRangeFunc
static void rna_brna_structs_add(BlenderRNA *brna, std::unique_ptr< StructRNA > srna_ptr)
int(*)(PointerRNA *ptr, PropertyRNA *prop, int value, bool is_set) IntPropertyGetTransformFunc
StructRNA *(*)(PointerRNA *ptr) PointerPropertyTypeFunc
float(*)(PointerRNA *ptr, PropertyRNA *prop, float value, bool is_set) FloatPropertyGetTransformFunc
PropertyRNA * RNA_def_float_factor(StructOrFunctionRNA *cont_, const char *identifier, const float default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
@ PROP_INTERN_FREE_POINTERS
@ PROP_INTERN_RNA_DEFINITION
@ PROP_INTERN_PTR_ID_REFCOUNT_FORCED
@ PROP_INTERN_PTR_OWNERSHIP_FORCED
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier_c_str, int type, int subtype)
void RNA_def_property_float_array_funcs_runtime(PropertyRNA *prop, FloatArrayPropertyGetFunc getfunc, FloatArrayPropertySetFunc setfunc, FloatPropertyRangeFunc rangefunc, FloatArrayPropertyGetTransformFunc get_transform_fn, FloatArrayPropertySetTransformFunc set_transform_fn)
int BLI_findindex(const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void RNA_def_struct_identifier_no_struct_map(StructRNA *srna, const char *identifier)
int(*)(PointerRNA *ptr, PropertyRNA *prop) EnumPropertyGetFunc
void RNA_def_property_update_runtime_with_context_and_property(PropertyRNA *prop, RNAPropertyUpdateFuncWithContextAndProperty func)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
void(*)(PointerRNA *ptr, const int *values) PropIntArraySetFunc
void(*)(PointerRNA *ptr, PropertyRNA *prop, bool value) BooleanPropertySetFunc
void RNA_def_parameter_clear_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
const void *const *const DNA_member_default_table[]
void RNA_def_property_string_default(PropertyRNA *prop, const char *value)
std::string(*)(PointerRNA *ptr, PropertyRNA *prop, const std::string &new_value, const std::string &curr_value, bool is_set) StringPropertySetTransformFunc
void RNA_struct_free(BlenderRNA *brna, StructRNA *srna)
bool RNA_validate_identifier(const char *identifier, bool is_property, const char **r_error)
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
const float rna_default_scale_3d[3]
void(*)(PointerRNA *ptr, const PointerRNA value, ReportList *reports) PropPointerSetFunc
eStringPropertySearchFlag
@ PROP_STRING_SEARCH_SUPPORTED
IDProperty * RNA_struct_system_idprops(PointerRNA *ptr, bool create)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void RNA_enum_items_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
void(*)(PointerRNA *ptr, PropertyRNA *prop, int *values) PropIntArrayGetFuncEx
void RNA_def_property_collection_funcs(PropertyRNA *prop, const char *begin, const char *next, const char *end, const char *get, const char *length, const char *lookupint, const char *lookupstring, const char *assignint)
StructRNA *(*)(PointerRNA *ptr) PropPointerTypeFunc
static ContainerDefRNA * rna_find_container_def(ContainerRNA *cont)
void RNA_def_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
BlenderRNA * RNA_create()
void RNA_def_property_override_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
void(*)(CollectionPropertyIterator *iter, PointerRNA *ptr) PropCollectionBeginFunc
void(*)(PointerRNA *ptr, float *values) PropFloatArrayGetFunc
void RNA_def_property_string_search_func_runtime(PropertyRNA *prop, StringPropertySearchFunc search_fn, const eStringPropertySearchFlag search_flag)
bool(*)(Main *bmain, StructRNA *type) StructUnregisterFunc
PointerRNA(*)(CollectionPropertyIterator *iter) PropCollectionGetFunc
void RNA_def_property_int_funcs_runtime(PropertyRNA *prop, IntPropertyGetFunc getfunc, IntPropertySetFunc setfunc, IntPropertyRangeFunc rangefunc, IntPropertyGetTransformFunc get_transform_fn, IntPropertySetTransformFunc set_transform_fn)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
StringRef DNA_member_id_string_ref(const StringRef member_full)
void(*)( PointerRNA *ptr, PropertyRNA *prop, float *min, float *max, float *softmin, float *softmax) FloatPropertyRangeFunc
void RNA_def_struct_path_func(StructRNA *srna, const char *path)
void RNA_def_property_string_filepath_filter_func(PropertyRNA *prop, const char *filter)
void RNA_def_property_float_default_func(PropertyRNA *prop, const char *get_default)
PointerRNA rna_builtin_properties_get(CollectionPropertyIterator *iter)
void RNA_def_property_subtype(PropertyRNA *prop, PropertySubType subtype)
void RNA_def_property_free_pointers(PropertyRNA *prop)
int(*)(PointerRNA *ptr, PropertyRNA *prop) StringPropertyLengthFunc
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
void RNA_def_struct_duplicate_pointers(BlenderRNA *brna, StructRNA *srna)
void(*)(PointerRNA *ptr, int *min, int *max, int *softmin, int *softmax) PropIntRangeFunc
void RNA_def_property_ui_name_func(PropertyRNA *prop, const char *name_func)
static size_t rna_property_type_sizeof(PropertyType type)
void(*)(PointerRNA *ptr, int value) PropIntSetFunc
void RNA_struct_py_type_set(StructRNA *srna, void *py_type)
MINLINE unsigned int bitscan_forward_uint64(unsigned long long a)
void RNA_enum_items_add_value(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item, int value)
void RNA_def_struct_clear_flag(StructRNA *srna, StructFlag flag)
PropertyDefRNA * rna_find_parameter_def(PropertyRNA *parm)
void RNA_def_struct_property_tags(StructRNA *srna, const EnumPropertyItem *prop_tag_defines)
void RNA_enum_item_end(EnumPropertyItem **items, int *totitem)
void(*)(PointerRNA *ptr, PropertyRNA *prop, const float *new_values, const float *curr_values, bool is_set, float *r_values) FloatArrayPropertySetTransformFunc
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
PointerRNA rna_builtin_type_get(PointerRNA *ptr)
int(*)(PointerRNA *ptr, PropertyRNA *prop, int new_value, int curr_value, bool is_set) IntPropertySetTransformFunc
void RNA_def_struct_sdna_from(StructRNA *srna, const char *structname, const char *propname)
void RNA_def_property_enum_funcs_runtime(PropertyRNA *prop, EnumPropertyGetFunc getfunc, EnumPropertySetFunc setfunc, EnumPropertyItemFunc itemfunc, EnumPropertyGetTransformFunc get_transform_fn, EnumPropertySetTransformFunc set_transform_fn)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier_c_str, const char *call)
const EnumPropertyItem *(*)(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free) PropEnumItemFunc
int(*)(PointerRNA *ptr) PropCollectionLengthFunc
bool(*)(PointerRNA *ptr, int key, const PointerRNA *assign_ptr) PropCollectionAssignIntFunc
StructRNA *(*)(PointerRNA *ptr) StructRefineFunc
void RNA_def_struct_register_funcs(StructRNA *srna, const char *reg, const char *unreg, const char *instance)
void(*)(PointerRNA *ptr, const float *values) PropFloatArraySetFunc
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
PropertyRNA * RNA_def_collection(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
FunctionDefRNA * rna_find_function_def(FunctionRNA *func)
void RNA_def_property_boolean_default(PropertyRNA *prop, bool value)
static bool debugSRNA_defaults
void(*)(PointerRNA *ptr, PropertyRNA *prop, const bool *new_values, const bool *curr_values, bool is_set, bool *r_values) BooleanArrayPropertySetTransformFunc
void(*)(PointerRNA *ptr, PropertyRNA *prop, float value) FloatPropertySetFunc
void(*)(bContext *C, ReportList *reports, PointerRNA *ptr, ParameterList *parms) CallFunc
void RNA_def_property_translation_context(PropertyRNA *prop, const char *context)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
const int rna_matrix_dimsize_4x2[]
void RNA_def_struct_idprops_func(StructRNA *srna, const char *idproperties)
std::string(*)(PointerRNA *ptr, PropertyRNA *prop) PropStringGetFuncEx
void RNA_def_property_struct_runtime(StructOrFunctionRNA *cont, PropertyRNA *prop, StructRNA *type)
void(*)( PointerRNA *ptr, PropertyRNA *prop, const float *curr_values, bool is_set, float *r_values) FloatArrayPropertyGetTransformFunc
constexpr const char * PYTHON_KEYWORDS_PROPERTIES[]
void RNA_identifier_sanitize(char *identifier, bool is_property)
int(*)(const PointerRNA *ptr, int length[RNA_MAX_ARRAY_DIMENSION]) PropArrayLengthGetFunc
void RNA_def_function_flag(FunctionRNA *func, FunctionFlag flag)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, const int default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
bool(*)(PointerRNA *ptr) PropBooleanGetFunc
void RNA_def_struct_flag(StructRNA *srna, StructFlag flag)
PropertyRNA * RNA_def_float_vector_xyz(StructOrFunctionRNA *cont_, const char *identifier, const int len, const float *default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
void RNA_define_fallback_property_update(int noteflag, const char *updatefunc)
void RNA_def_struct_path_func_runtime(StructRNA *srna, StructPathFunc path_fn)
void RNA_def_property_boolean_default_func(PropertyRNA *prop, const char *get_default)
PropertyRNA * RNA_def_boolean_layer(StructOrFunctionRNA *cont_, const char *identifier, const int len, const bool *default_value, const char *ui_name, const char *ui_description)
void RNA_struct_blender_type_set(StructRNA *srna, void *blender_type)
StructRNA *(*)(Main *bmain, ReportList *reports, void *data, const char *identifier, StructValidateFunc validate, StructCallbackFunc call, StructFreeFunc free) StructRegisterFunc
bool(*)(PointerRNA *ptr, PropertyRNA *prop) BooleanPropertyGetFunc
FunctionRNA * RNA_def_function_runtime(StructRNA *srna, const char *identifier, CallFunc call)
static void rna_remlink(ListBase *listbase, void *vlink)
void RNA_def_property_override_clear_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
float(*)(PointerRNA *ptr, PropertyRNA *prop, float new_value, float curr_value, bool is_set) FloatPropertySetTransformFunc
void RNA_def_struct_translation_context(StructRNA *srna, const char *context)
IDPropertyGroup * rna_struct_system_properties_get_func(PointerRNA ptr, bool do_create)
char * BLI_strdup(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC
void RNA_def_property_int_array_default(PropertyRNA *prop, const int *array)
const float rna_default_quaternion[4]
void RNA_enum_item_add_separator(EnumPropertyItem **items, int *totitem)
void(*)(PointerRNA *ptr, int *values) PropIntArrayGetFunc
int(*)(const PointerRNA *ptr, const char **r_info) EditableFunc
PropertyRNA * RNA_def_float_rotation(StructOrFunctionRNA *cont_, const char *identifier, const int len, const float *default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
void(*)(PointerRNA *ptr, char *value) PropStringGetFunc
void RNA_def_property_enum_native_type(PropertyRNA *prop, const char *native_enum_type)
bool is_dnatype_int_compat(const StringRef dnatype)
void(*)(const bContext *C, PointerRNA *ptr, PropertyRNA *prop, const char *edit_text, FunctionRef< void(StringPropertySearchVisitParams)> visit_fn) StringPropertySearchFunc
void RNA_def_property_editable_array_func(PropertyRNA *prop, const char *editable)
void(*)(PointerRNA *ptr, const char *value) PropStringSetFunc
void RNA_def_property_poll_runtime(PropertyRNA *prop, const void *func)
const char * RNA_property_typename(PropertyType type)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
PropertyDefRNA * rna_find_struct_property_def(StructRNA *srna, PropertyRNA *prop)
@ PROP_CONTEXT_PROPERTY_UPDATE
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_update_notifier(PropertyRNA *prop, const int noteflag)
void(*)(Main *bmain, RNAPropertyOverrideDiffContext &rnadiff_ctx) RNAPropOverrideDiff
void BPY_free_srna_pytype(StructRNA *srna)
int DNA_member_array_num(const StringRef str)
PropertyRNA * RNA_def_float_distance(StructOrFunctionRNA *cont_, const char *identifier, const float default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
void(*)(bContext *C, PointerRNA *ptr, PropertyRNA *prop) RNAPropertyUpdateFuncWithContextAndProperty
void RNA_def_property_update_runtime(PropertyRNA *prop, RNAPropertyUpdateFunc func)
PropertyRNA * RNA_def_int_array(StructOrFunctionRNA *cont_, const char *identifier, const int len, const int *default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
const EnumPropertyItem *(*)(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free) EnumPropertyItemFunc
void RNA_def_property_int_array_funcs_runtime(PropertyRNA *prop, IntArrayPropertyGetFunc getfunc, IntArrayPropertySetFunc setfunc, IntPropertyRangeFunc rangefunc, IntArrayPropertyGetTransformFunc get_transform_fn, IntArrayPropertySetTransformFunc set_transform_fn)
PropertyRNA * RNA_def_enum_flag(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_boolean_layer_member(StructOrFunctionRNA *cont_, const char *identifier, const int len, const bool *default_value, const char *ui_name, const char *ui_description)
void(*)(PointerRNA *ptr, PropertyRNA *prop, const std::string &value) StringPropertySetFunc
static PropertyDefRNA * rna_def_property_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
static RnaDnaTypeInfo rna_dnatype_primitive_info(const StringRef dnatype)
std::optional< std::string >(*)(const PointerRNA *ptr) StructPathFunc
void(*)( PointerRNA *ptr, PropertyRNA *prop, const bool *curr_values, bool is_set, bool *r_values) BooleanArrayPropertyGetTransformFunc
PointerRNA(*)(PointerRNA *ptr) PropPointerGetFunc
bool(*)(PointerRNA *ptr, int key, PointerRNA *r_ptr) PropCollectionLookupIntFunc
float(*)(PointerRNA *ptr, PropertyRNA *prop) FloatPropertyGetFunc
void(*)(PointerRNA *ptr, PropertyRNA *prop, int value) IntPropertySetFunc
PropertyRNA * RNA_def_string_file_name(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
void(*)(Main *, Scene *, PointerRNA *) RNAPropertyUpdateFunc
int RNA_def_property_free_identifier(StructOrFunctionRNA *cont_, const char *identifier)
static void print_default_info(const PropertyDefRNA *dp)
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
void RNA_def_func_free_pointers(FunctionRNA *func)
float(*)(PointerRNA *ptr) PropFloatGetFunc
void RNA_define_verify_sdna(bool verify)
int(*)(PointerRNA *ptr, PropertyRNA *prop, int new_value, int curr_value, bool is_set) EnumPropertySetTransformFunc
static FunctionRNA * rna_def_function(StructRNA *srna, const UString identifier)
bool(*)(Main *bmain, RNAPropertyOverrideApplyContext &rnaapply_ctx) RNAPropOverrideApply
int RNA_def_property_free_identifier_deferred_prepare(StructOrFunctionRNA *cont_, const char *identifier, void **handle)
PointerRNA(*)(PointerRNA *ptr) PointerPropertyGetFunc
void RNA_def_func_duplicate_pointers(FunctionRNA *func)
std::string(*)(PointerRNA *ptr, PropertyRNA *prop, const std::string &value, bool is_set) StringPropertyGetTransformFunc
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_float_matrix(StructOrFunctionRNA *cont_, const char *identifier, const int rows, const int columns, const float *default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
void RNA_define_free(BlenderRNA *)
bool(*)(PointerRNA *ptr, PropertyRNA *prop) PropBooleanGetFuncEx
void(*)(CollectionPropertyIterator *iter) PropCollectionEndFunc
int(*)(PointerRNA *ptr) PropEnumGetFunc
int(*)(PointerRNA *ptr, PropertyRNA *prop) PropIntGetFuncEx
void RNA_def_property_int_default(PropertyRNA *prop, int value)
void RNA_struct_free_extension(StructRNA *srna, ExtensionRNA *rna_ext)
int(*)(PointerRNA *ptr) PropIntGetFunc
void RNA_def_struct_name_property(StructRNA *srna, PropertyRNA *prop, const bool allow_replace)
void *(*) MEM_realloc_zeroed_id(void *vmemh, size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(2)
void(*)(PointerRNA *ptr, PointerRNA value, ReportList *reports) PointerPropertySetFunc
void(*)(Main *bmain, Scene *active_scene, PointerRNA *ptr) UpdateFunc
void RNA_def_property_int_default_func(PropertyRNA *prop, const char *get_default)
const char *(*)(const PointerRNA *ptr, const PropertyRNA *prop, bool do_translate) PropUINameFunc
PropertyRNA * RNA_def_float(StructOrFunctionRNA *cont_, const char *identifier, const float default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
void RNA_def_property_array(PropertyRNA *prop, int length)
const int rna_matrix_dimsize_4x4[]
void RNA_def_property_boolean_array_funcs_runtime(PropertyRNA *prop, BooleanArrayPropertyGetFunc getfunc, BooleanArrayPropertySetFunc setfunc, BooleanArrayPropertyGetTransformFunc get_transform_fn, BooleanArrayPropertySetTransformFunc set_transform_fn)
void RNA_def_py_data(PropertyRNA *prop, void *py_data)
void RNA_def_property_ui_icon(PropertyRNA *prop, int icon, int consecutive)
void **(*)(PointerRNA *ptr) StructInstanceFunc
void RNA_def_property_string_search_func(PropertyRNA *prop, const char *search, const eStringPropertySearchFlag search_flag)
int(*)(PointerRNA *ptr, PropertyRNA *prop) PropEnumGetFuncEx
void * MEM_new_array_zeroed(size_t len, size_t size, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
void RNA_def_property_string_default_func(PropertyRNA *prop, const char *get_default)
void(*)( PointerRNA *ptr, PropertyRNA *prop, const int *curr_values, bool is_set, int *r_values) IntArrayPropertyGetTransformFunc
const int rna_matrix_dimsize_3x3[]
StructRNA * RNA_def_struct_ptr(BlenderRNA *brna, const char *identifier, StructRNA *srnafrom)
#define ASSERT_SOFT_HARD_LIMITS
#define CONTAINER_RNA_ID(cont)
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
ListBaseT< StructDefRNA > structs
struct blender::BlenderDefRNA::@024075223340261251000354223050226013306177115224 fallback
Vector< dna::ParsedStruct > dna_structs
ListBaseT< AllocDefRNA > allocs
struct StructRNA * laststruct
Vector< std::unique_ptr< StructRNA > > structs
Map< UString, StructRNA * > structs_map
PropBooleanArraySetFunc setarray
PropBooleanGetTransformFunc get_transform
PropBooleanSetTransformFunc set_transform
PropBooleanArraySetTransformFunc setarray_transform
PropBooleanSetFuncEx set_ex
PropBooleanArraySetFuncEx setarray_ex
PropBooleanGetFuncEx get_default
PropBooleanArrayGetFunc getarray
PropBooleanArrayGetFuncEx getarray_ex
PropBooleanGetFuncEx get_ex
const bool * defaultarray
PropBooleanArrayGetFuncEx get_default_array
PropBooleanArrayGetTransformFunc getarray_transform
PropCollectionBeginFunc begin
PropCollectionGetFunc get
PropCollectionLookupStringFunc lookupstring
PropCollectionAssignIntFunc assignint
PropCollectionEndFunc end
PropCollectionLookupIntFunc lookupint
PropCollectionNextFunc next
PropCollectionLengthFunc length
ListBaseT< PropertyDefRNA > properties
CustomIDVectorSet< PropertyRNA *, PropertyRNAIdentifierGetter > * prop_lookup_set
ListBaseT< PropertyRNA > properties
const EnumPropertyItem * item
const char * native_enum_type
PropEnumGetFuncEx get_default
PropEnumSetTransformFunc set_transform
PropEnumGetTransformFunc get_transform
PropFloatArraySetFuncEx setarray_ex
PropFloatGetTransformFunc get_transform
PropFloatRangeFuncEx range_ex
PropFloatSetTransformFunc set_transform
PropFloatArraySetTransformFunc setarray_transform
PropFloatSetFuncEx set_ex
PropFloatArrayGetFuncEx getarray_ex
PropFloatGetFuncEx get_ex
PropertyScaleType ui_scale_type
PropFloatGetFuncEx get_default
PropFloatArraySetFunc setarray
PropFloatArrayGetFuncEx get_default_array
const float * defaultarray
PropFloatArrayGetTransformFunc getarray_transform
PropFloatArrayGetFunc getarray
PropIntArrayGetFunc getarray
PropIntGetFuncEx get_default
PropIntArrayGetTransformFunc getarray_transform
PropIntArrayGetFuncEx getarray_ex
PropIntRangeFuncEx range_ex
PropIntArraySetFuncEx setarray_ex
PropIntArraySetFunc setarray
PropIntArraySetTransformFunc setarray_transform
PropertyScaleType ui_scale_type
PropIntGetTransformFunc get_transform
PropIntSetTransformFunc set_transform
PropIntArrayGetFuncEx get_default_array
uint32_t id_default_session_uid
PropPointerTypeFunc type_fn
StringRefNull dnastructname
StringRefNull dnalengthname
StringRefNull dnastructfromprop
StringRefNull dnastructfromname
StringRefNull dnalengthstructname
const void * dnadefaultdata
RNAPropOverrideDiff override_diff
PropUINameFunc ui_description_func
const char * translation_context
RNAPropOverrideApply override_apply
PropertyFlagIntern flag_internal
ItemEditableFunc itemeditable
unsigned int totarraylength
PropUINameFunc ui_name_func
ParameterFlag flag_parameter
unsigned int arraydimension
PropArrayLengthGetFunc getlength
const DeprecatedRNA * deprecated
unsigned int arraylength[RNA_MAX_ARRAY_DIMENSION]
PropertyOverrideFlag flag_override
RNAPropOverrideStore override_store
PropertyPathTemplateType path_template_type
PropStringLengthFunc length
PropStringGetFuncEx get_ex
PropStringGetFuncEx get_default
eStringPropertySearchFlag search_flag
PropStringSetFuncEx set_ex
PropStringGetTransformFunc get_transform
const char * defaultvalue
StringPropertyPathFilterFunc path_filter
PropStringSetTransformFunc set_transform
StringPropertySearchFunc search
PropStringLengthFuncEx length_ex
StringRefNull dnafromname
ListBaseT< FunctionDefRNA > functions
StringRefNull dnafromprop
StructInstanceFunc instance
PropertyRNA * iteratorproperty
IDPropertiesFunc system_idproperties
Vector< std::unique_ptr< FunctionRNA > > functions
IDPropertiesFunc idproperties
const EnumPropertyItem * prop_tag_defines
PropertyRNA * nameproperty
StructUnregisterFunc unreg
const char * translation_context
Vector< ParsedMember > members