Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_access.c
| Show First 20 Lines • Show All 3,598 Lines • ▼ Show 20 Lines | char *RNA_property_string_get_default_alloc(PointerRNA *ptr, | ||||
| RNA_property_string_get_default(ptr, prop, buf); | RNA_property_string_get_default(ptr, prop, buf); | ||||
| return buf; | return buf; | ||||
| } | } | ||||
| /* this is the length without \0 terminator */ | /* this is the length without \0 terminator */ | ||||
| int RNA_property_string_default_length(PointerRNA *UNUSED(ptr), PropertyRNA *prop) | int RNA_property_string_default_length(PointerRNA *UNUSED(ptr), PropertyRNA *prop) | ||||
| { | { | ||||
| StringPropertyRNA *sprop = (StringPropertyRNA *)prop; | StringPropertyRNA *sprop = (StringPropertyRNA *)rna_ensure_property(prop); | ||||
| BLI_assert(RNA_property_type(prop) == PROP_STRING); | BLI_assert(RNA_property_type(prop) == PROP_STRING); | ||||
| return strlen(sprop->defaultvalue); | return strlen(sprop->defaultvalue); | ||||
| } | } | ||||
| int RNA_property_enum_get(PointerRNA *ptr, PropertyRNA *prop) | int RNA_property_enum_get(PointerRNA *ptr, PropertyRNA *prop) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 4,589 Lines • Show Last 20 Lines | |||||