Blender
V3.3
|
Go to the source code of this file.
Functions | |
void | rna_property_rna_or_id_get (PropertyRNA *prop, PointerRNA *ptr, PropertyRNAOrID *r_prop_rna_or_id) |
void | rna_idproperty_touch (struct IDProperty *idprop) |
struct IDProperty * | rna_idproperty_find (PointerRNA *ptr, const char *name) |
PropertyRNA * | rna_struct_find_nested (PointerRNA *ptr, StructRNA *srna) |
struct IDProperty* rna_idproperty_find | ( | PointerRNA * | ptr, |
const char * | name | ||
) |
Definition at line 271 of file rna_access.c.
References IDP_GetPropertyFromGroup(), IDP_GROUP, NULL, ptr, RNA_struct_idprops(), and IDProperty::type.
Referenced by RNA_property_is_set(), RNA_property_is_set_ex(), and rna_property_rna_or_id_get().
void rna_idproperty_touch | ( | struct IDProperty * | idprop | ) |
Definition at line 232 of file rna_access.c.
References IDProperty::flag, and IDP_FLAG_GHOST.
Referenced by RNA_property_boolean_set(), RNA_property_boolean_set_array(), RNA_property_collection_add(), RNA_property_collection_clear(), RNA_property_copy(), RNA_property_enum_set(), RNA_property_float_set(), RNA_property_float_set_array(), RNA_property_int_set(), RNA_property_int_set_array(), RNA_property_pointer_set(), RNA_property_string_set(), and RNA_property_string_set_bytes().
void rna_property_rna_or_id_get | ( | PropertyRNA * | prop, |
PointerRNA * | ptr, | ||
PropertyRNAOrID * | r_prop_rna_or_id | ||
) |
This function initializes a PropertyRNAOrID with all required info, from a given PropertyRNA and PointerRNA data. It deals properly with the three cases (static RNA, runtime RNA, and IDProperty).
ptr
PointerRNA is assumed to be a valid data one here, calling code is responsible to ensure that. Definition at line 431 of file rna_access.c.
References PropertyRNAOrID::array_len, arraytypemap, PointerRNA::data, IDProperty::flag, PropertyRNA::flag, PropertyRNA::getlength, PropertyRNAOrID::identifier, PropertyRNA::identifier, IDP_ARRAY, IDP_FLAG_GHOST, IDP_FreeFromGroup(), PropertyRNAOrID::idprop, PropertyRNAOrID::is_array, PropertyRNAOrID::is_idprop, PropertyRNAOrID::is_set, IDProperty::len, PropertyRNA::magic, IDProperty::name, NULL, PROP_IDPROPERTY, PropertyRNAOrID::ptr, ptr, PropertyRNAOrID::rawprop, rna_idproperty_find(), rna_idproperty_verify_valid(), RNA_MAGIC, RNA_MAX_ARRAY_DIMENSION, RNA_struct_idprops(), PropertyRNAOrID::rnaprop, IDProperty::subtype, PropertyRNA::totarraylength, IDProperty::type, and typemap.
Referenced by rna_ensure_property_realdata(), rna_idproperty_check(), RNA_property_equals(), and RNA_struct_override_matches().
PropertyRNA* rna_struct_find_nested | ( | PointerRNA * | ptr, |
StructRNA * | srna | ||
) |
Definition at line 742 of file rna_access.c.
References NULL, ptr, RNA_PROP_END, RNA_property_pointer_type(), and RNA_STRUCT_BEGIN.
Referenced by RNA_path_from_ID_to_struct().