Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/makesrna.c
| Show First 20 Lines • Show All 4,046 Lines • ▼ Show 20 Lines | case PROP_ENUM: { | ||||
| rna_function_string(eprop->get_ex), | rna_function_string(eprop->get_ex), | ||||
| rna_function_string(eprop->set_ex)); | rna_function_string(eprop->set_ex)); | ||||
| if (eprop->item) { | if (eprop->item) { | ||||
| fprintf(f, "rna_%s%s_%s_items, ", srna->identifier, strnest, prop->identifier); | fprintf(f, "rna_%s%s_%s_items, ", srna->identifier, strnest, prop->identifier); | ||||
| } | } | ||||
| else { | else { | ||||
| fprintf(f, "NULL, "); | fprintf(f, "NULL, "); | ||||
| } | } | ||||
| fprintf(f, "%d, %d\n", eprop->totitem, eprop->defaultvalue); | fprintf(f, "%d,\n", eprop->totitem); | ||||
| fprintf(f, "\t{NULL, -1},\n"); | |||||
| fprintf(f, "\t%d,\n", eprop->defaultvalue); | |||||
| break; | break; | ||||
| } | } | ||||
| case PROP_POINTER: { | case PROP_POINTER: { | ||||
| PointerPropertyRNA *pprop = (PointerPropertyRNA *)prop; | PointerPropertyRNA *pprop = (PointerPropertyRNA *)prop; | ||||
| fprintf(f, | fprintf(f, | ||||
| "\t%s, %s, %s, %s,", | "\t%s, %s, %s, %s,", | ||||
| rna_function_string(pprop->get), | rna_function_string(pprop->get), | ||||
| rna_function_string(pprop->set), | rna_function_string(pprop->set), | ||||
| ▲ Show 20 Lines • Show All 1,177 Lines • Show Last 20 Lines | |||||