Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_main.c
| Show First 20 Lines • Show All 393 Lines • ▼ Show 20 Lines | void RNA_def_main(BlenderRNA *brna) | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_is_saved_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_is_saved_get", NULL); | ||||
| RNA_def_property_ui_text(prop, "File is Saved", "Has the current session been saved to disk as a .blend file"); | RNA_def_property_ui_text(prop, "File is Saved", "Has the current session been saved to disk as a .blend file"); | ||||
| prop = RNA_def_property(srna, "use_autopack", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_autopack", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_use_autopack_get", "rna_Main_use_autopack_set"); | RNA_def_property_boolean_funcs(prop, "rna_Main_use_autopack_get", "rna_Main_use_autopack_set"); | ||||
| RNA_def_property_ui_text(prop, "Use Autopack", "Automatically pack all external data into .blend file"); | RNA_def_property_ui_text(prop, "Use Autopack", "Automatically pack all external data into .blend file"); | ||||
| prop = RNA_def_int_vector(srna, "version", 3, NULL, 0, INT_MAX, | prop = RNA_def_int_vector(srna, "version", 3, NULL, 0, INT_MAX, | ||||
| "Version", "Version of the blender the .blend was saved with", 0, INT_MAX); | "Version", "Version of Blender the .blend was saved with", 0, INT_MAX); | ||||
| RNA_def_property_int_funcs(prop, "rna_Main_version_get", NULL, NULL); | RNA_def_property_int_funcs(prop, "rna_Main_version_get", NULL, NULL); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_flag(prop, PROP_THICK_WRAP); | RNA_def_property_flag(prop, PROP_THICK_WRAP); | ||||
| for (i = 0; lists[i].name; i++) { | for (i = 0; lists[i].name; i++) { | ||||
| prop = RNA_def_property(srna, lists[i].identifier, PROP_COLLECTION, PROP_NONE); | prop = RNA_def_property(srna, lists[i].identifier, PROP_COLLECTION, PROP_NONE); | ||||
| RNA_def_property_struct_type(prop, lists[i].type); | RNA_def_property_struct_type(prop, lists[i].type); | ||||
| RNA_def_property_collection_funcs(prop, lists[i].iter_begin, "rna_iterator_listbase_next", | RNA_def_property_collection_funcs(prop, lists[i].iter_begin, "rna_iterator_listbase_next", | ||||
| Show All 26 Lines | |||||