Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_main_api.c
| Show First 20 Lines • Show All 529 Lines • ▼ Show 20 Lines | |||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(armatures, armature, ID_AR) | RNA_MAIN_ID_TAG_FUNCS_DEF(armatures, armature, ID_AR) | ||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(actions, action, ID_AC) | RNA_MAIN_ID_TAG_FUNCS_DEF(actions, action, ID_AC) | ||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(particles, particle, ID_PA) | RNA_MAIN_ID_TAG_FUNCS_DEF(particles, particle, ID_PA) | ||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(palettes, palettes, ID_PAL) | RNA_MAIN_ID_TAG_FUNCS_DEF(palettes, palettes, ID_PAL) | ||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(gpencil, gpencil, ID_GD) | RNA_MAIN_ID_TAG_FUNCS_DEF(gpencil, gpencil, ID_GD) | ||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(movieclips, movieclip, ID_MC) | RNA_MAIN_ID_TAG_FUNCS_DEF(movieclips, movieclip, ID_MC) | ||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(masks, mask, ID_MSK) | RNA_MAIN_ID_TAG_FUNCS_DEF(masks, mask, ID_MSK) | ||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(linestyle, linestyle, ID_LS) | RNA_MAIN_ID_TAG_FUNCS_DEF(linestyle, linestyle, ID_LS) | ||||
| RNA_MAIN_ID_TAG_FUNCS_DEF(cachefiles, cachefiles, ID_CF) | |||||
| #undef RNA_MAIN_ID_TAG_FUNCS_DEF | #undef RNA_MAIN_ID_TAG_FUNCS_DEF | ||||
| #else | #else | ||||
| void RNA_api_main(StructRNA *UNUSED(srna)) | void RNA_api_main(StructRNA *UNUSED(srna)) | ||||
| { | { | ||||
| #if 0 | #if 0 | ||||
| ▲ Show 20 Lines • Show All 997 Lines • ▼ Show 20 Lines | void RNA_def_main_palettes(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| func = RNA_def_function(srna, "tag", "rna_Main_palettes_tag"); | func = RNA_def_function(srna, "tag", "rna_Main_palettes_tag"); | ||||
| parm = RNA_def_boolean(func, "value", 0, "Value", ""); | parm = RNA_def_boolean(func, "value", 0, "Value", ""); | ||||
| RNA_def_property_flag(parm, PROP_REQUIRED); | RNA_def_property_flag(parm, PROP_REQUIRED); | ||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_palettes_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_palettes_is_updated_get", NULL); | ||||
| } | } | ||||
| void RNA_def_main_cachefiles(BlenderRNA *brna, PropertyRNA *cprop) | |||||
| { | |||||
| RNA_def_property_srna(cprop, "BlendDataCacheFiles"); | |||||
| StructRNA *srna = RNA_def_struct(brna, "BlendDataCacheFiles", NULL); | |||||
| RNA_def_struct_sdna(srna, "Main"); | |||||
| RNA_def_struct_ui_text(srna, "Main Cache Files", "Collection of cache files"); | |||||
| FunctionRNA *func = RNA_def_function(srna, "tag", "rna_Main_cachefiles_tag"); | |||||
| PropertyRNA *parm = RNA_def_boolean(func, "value", 0, "Value", ""); | |||||
| RNA_def_property_flag(parm, PROP_REQUIRED); | |||||
| PropertyRNA *prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | |||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_cachefiles_is_updated_get", NULL); | |||||
| } | |||||
| void RNA_def_main_gpencil(BlenderRNA *brna, PropertyRNA *cprop) | void RNA_def_main_gpencil(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| FunctionRNA *func; | FunctionRNA *func; | ||||
| PropertyRNA *parm; | PropertyRNA *parm; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| RNA_def_property_srna(cprop, "BlendDataGreasePencils"); | RNA_def_property_srna(cprop, "BlendDataGreasePencils"); | ||||
| ▲ Show 20 Lines • Show All 148 Lines • Show Last 20 Lines | |||||