Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/idprop.c
| Show First 20 Lines • Show All 1,145 Lines • ▼ Show 20 Lines | void IDP_foreach_property(IDProperty *id_property_root, | ||||
| if (type_filter == 0 || (1 << id_property_root->type) & type_filter) { | if (type_filter == 0 || (1 << id_property_root->type) & type_filter) { | ||||
| callback(id_property_root, user_data); | callback(id_property_root, user_data); | ||||
| } | } | ||||
| /* Recursive call into container types of ID properties. */ | /* Recursive call into container types of ID properties. */ | ||||
| switch (id_property_root->type) { | switch (id_property_root->type) { | ||||
| case IDP_GROUP: { | case IDP_GROUP: { | ||||
| LISTBASE_FOREACH (IDProperty *, loop, &id_property_root->data.group) { | LISTBASE_FOREACH (IDProperty *, loop, &id_property_root->data.group) { | ||||
| if (STREQ(loop->name, "_RNA_UI")) { | |||||
| continue; | |||||
| } | |||||
| IDP_foreach_property(loop, type_filter, callback, user_data); | IDP_foreach_property(loop, type_filter, callback, user_data); | ||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| case IDP_IDPARRAY: { | case IDP_IDPARRAY: { | ||||
| IDProperty *loop = IDP_Array(id_property_root); | IDProperty *loop = IDP_Array(id_property_root); | ||||
| for (int i = 0; i < id_property_root->len; i++) { | for (int i = 0; i < id_property_root->len; i++) { | ||||
| IDP_foreach_property(&loop[i], type_filter, callback, user_data); | IDP_foreach_property(&loop[i], type_filter, callback, user_data); | ||||
| ▲ Show 20 Lines • Show All 273 Lines • Show Last 20 Lines | |||||