Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/intern/bpy_rna.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 5,159 Lines • ▼ Show 20 Lines | if (!foreach_attr_type(self, *attr, raw_type, attr_tot, attr_signed)) { | ||||
| "foreach_get/set '%.200s.%200s[...]' elements have no attribute '%.200s'", | "foreach_get/set '%.200s.%200s[...]' elements have no attribute '%.200s'", | ||||
| RNA_struct_identifier(self->ptr.type), | RNA_struct_identifier(self->ptr.type), | ||||
| RNA_property_identifier(self->prop), | RNA_property_identifier(self->prop), | ||||
| *attr); | *attr); | ||||
| return -1; | return -1; | ||||
| } | } | ||||
| *size = RNA_raw_type_sizeof(*raw_type); | *size = RNA_raw_type_sizeof(*raw_type); | ||||
| #if 0 /* Works fine, but not strictly needed. \ | #if 0 /* Works fine, but not strictly needed. \ \ | ||||
| * we could allow RNA_property_collection_raw_* to do the checks */ | * we could allow RNA_property_collection_raw_* to do the checks */ | ||||
| if ((*attr_tot) < 1) { | if ((*attr_tot) < 1) { | ||||
| *attr_tot = 1; | *attr_tot = 1; | ||||
| } | } | ||||
| if (RNA_property_type(self->prop) == PROP_COLLECTION) { | if (RNA_property_type(self->prop) == PROP_COLLECTION) { | ||||
| array_tot = RNA_property_collection_length(&self->ptr, self->prop); | array_tot = RNA_property_collection_length(&self->ptr, self->prop); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 3,811 Lines • Show Last 20 Lines | |||||