Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/makesrna.c
| Show First 20 Lines • Show All 2,825 Lines • ▼ Show 20 Lines | static void rna_generate_struct_prototypes(FILE *f) | ||||
| /* structures definitions */ | /* structures definitions */ | ||||
| for (ds = DefRNA.structs.first; ds; ds = ds->cont.next) { | for (ds = DefRNA.structs.first; ds; ds = ds->cont.next) { | ||||
| for (dfunc = ds->functions.first; dfunc; dfunc = dfunc->cont.next) { | for (dfunc = ds->functions.first; dfunc; dfunc = dfunc->cont.next) { | ||||
| if (dfunc->call) { | if (dfunc->call) { | ||||
| for (dp = dfunc->cont.properties.first; dp; dp = dp->next) { | for (dp = dfunc->cont.properties.first; dp; dp = dp->next) { | ||||
| if (dp->prop->type == PROP_POINTER) { | if (dp->prop->type == PROP_POINTER) { | ||||
| int a, found = 0; | int a, found = 0; | ||||
| const char *struct_name = rna_parameter_type_name(dp->prop); | const char *struct_name = rna_parameter_type_name(dp->prop); | ||||
| if (struct_name == NULL) { | |||||
| printf("No struct found for property '%s'\n", dp->prop->identifier); | |||||
| exit(1); | |||||
| } | |||||
| for (a = 0; a < all_structures; a++) { | for (a = 0; a < all_structures; a++) { | ||||
| if (STREQ(struct_name, structures[a])) { | if (STREQ(struct_name, structures[a])) { | ||||
| found = 1; | found = 1; | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,349 Lines • Show Last 20 Lines | |||||