Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/makesrna.c
| Show First 20 Lines • Show All 2,994 Lines • ▼ Show 20 Lines | fprintf(f, "%s%s rna_%s%s_%s = {\n", | ||||
| srna->identifier, strnest, prop->identifier); | srna->identifier, strnest, prop->identifier); | ||||
| if (prop->next) fprintf(f, "\t{(PropertyRNA *)&rna_%s%s_%s, ", srna->identifier, strnest, prop->next->identifier); | if (prop->next) fprintf(f, "\t{(PropertyRNA *)&rna_%s%s_%s, ", srna->identifier, strnest, prop->next->identifier); | ||||
| else fprintf(f, "\t{NULL, "); | else fprintf(f, "\t{NULL, "); | ||||
| if (prop->prev) fprintf(f, "(PropertyRNA *)&rna_%s%s_%s,\n", srna->identifier, strnest, prop->prev->identifier); | if (prop->prev) fprintf(f, "(PropertyRNA *)&rna_%s%s_%s,\n", srna->identifier, strnest, prop->prev->identifier); | ||||
| else fprintf(f, "NULL,\n"); | else fprintf(f, "NULL,\n"); | ||||
| fprintf(f, "\t%d, ", prop->magic); | fprintf(f, "\t%d, ", prop->magic); | ||||
| rna_print_c_string(f, prop->identifier); | rna_print_c_string(f, prop->identifier); | ||||
| fprintf(f, ", %d, %d, %d, ", prop->flag, prop->flag_parameter, prop->flag_internal); | fprintf(f, ", %d, %d, %d, %d, ", prop->flag, prop->flag_parameter, prop->flag_internal, prop->tags); | ||||
| rna_print_c_string(f, prop->name); fprintf(f, ",\n\t"); | rna_print_c_string(f, prop->name); fprintf(f, ",\n\t"); | ||||
| rna_print_c_string(f, prop->description); fprintf(f, ",\n\t"); | rna_print_c_string(f, prop->description); fprintf(f, ",\n\t"); | ||||
| fprintf(f, "%d, ", prop->icon); | fprintf(f, "%d, ", prop->icon); | ||||
| rna_print_c_string(f, prop->translation_context); fprintf(f, ",\n"); | rna_print_c_string(f, prop->translation_context); fprintf(f, ",\n"); | ||||
| fprintf(f, "\t%s, %s | %s, %s, %u, {%u, %u, %u}, %u,\n", | fprintf(f, "\t%s, %s | %s, %s, %u, {%u, %u, %u}, %u,\n", | ||||
| RNA_property_typename(prop->type), | RNA_property_typename(prop->type), | ||||
| rna_property_subtypename(prop->subtype), | rna_property_subtypename(prop->subtype), | ||||
| rna_property_subtype_unit(prop->subtype), | rna_property_subtype_unit(prop->subtype), | ||||
| ▲ Show 20 Lines • Show All 227 Lines • ▼ Show 20 Lines | static void rna_generate_struct(BlenderRNA *UNUSED(brna), StructRNA *srna, FILE *f) | ||||
| else fprintf(f, "\t{NULL, "); | else fprintf(f, "\t{NULL, "); | ||||
| prop = srna->cont.properties.last; | prop = srna->cont.properties.last; | ||||
| if (prop) fprintf(f, "(PropertyRNA *)&rna_%s_%s}},\n", srna->identifier, prop->identifier); | if (prop) fprintf(f, "(PropertyRNA *)&rna_%s_%s}},\n", srna->identifier, prop->identifier); | ||||
| else fprintf(f, "NULL}},\n"); | else fprintf(f, "NULL}},\n"); | ||||
| fprintf(f, "\t"); | fprintf(f, "\t"); | ||||
| rna_print_c_string(f, srna->identifier); | rna_print_c_string(f, srna->identifier); | ||||
| fprintf(f, ", NULL, NULL"); /* PyType - Cant initialize here */ | fprintf(f, ", NULL, NULL"); /* PyType - Cant initialize here */ | ||||
| fprintf(f, ", %d, ", srna->flag); | fprintf(f, ", %d, NULL, ", srna->flag); /* XXX Should prop_tag_defines really be NULL here? */ | ||||
| rna_print_c_string(f, srna->name); | rna_print_c_string(f, srna->name); | ||||
| fprintf(f, ",\n\t"); | fprintf(f, ",\n\t"); | ||||
| rna_print_c_string(f, srna->description); | rna_print_c_string(f, srna->description); | ||||
| fprintf(f, ",\n\t"); | fprintf(f, ",\n\t"); | ||||
| rna_print_c_string(f, srna->translation_context); | rna_print_c_string(f, srna->translation_context); | ||||
| fprintf(f, ", %d,\n", srna->icon); | fprintf(f, ", %d,\n", srna->icon); | ||||
| prop = srna->nameproperty; | prop = srna->nameproperty; | ||||
| ▲ Show 20 Lines • Show All 899 Lines • Show Last 20 Lines | |||||