26static bool rna_Main_use_autopack_get(
PointerRNA * )
35static void rna_Main_use_autopack_set(
PointerRNA * ,
bool value)
48 return (bmain->filepath[0] !=
'\0');
63static void rna_Main_filepath_get(
PointerRNA *
ptr,
char *value)
66 strcpy(value, bmain->filepath);
72 return strlen(bmain->filepath);
76static void rna_Main_filepath_set(
PointerRNA *
ptr,
const char *value)
79 STRNCPY(bmain->filepath, value);
83# define RNA_MAIN_LISTBASE_FUNCS_DEF(_listbase_name) \
84 static void rna_Main_##_listbase_name##_begin(CollectionPropertyIterator *iter, \
87 rna_iterator_listbase_begin(iter, ptr, &((Main *)ptr->data)->_listbase_name, nullptr); \
90RNA_MAIN_LISTBASE_FUNCS_DEF(actions)
91RNA_MAIN_LISTBASE_FUNCS_DEF(armatures)
92RNA_MAIN_LISTBASE_FUNCS_DEF(brushes)
93RNA_MAIN_LISTBASE_FUNCS_DEF(cachefiles)
94RNA_MAIN_LISTBASE_FUNCS_DEF(cameras)
95RNA_MAIN_LISTBASE_FUNCS_DEF(collections)
96RNA_MAIN_LISTBASE_FUNCS_DEF(curves)
97RNA_MAIN_LISTBASE_FUNCS_DEF(fonts)
98RNA_MAIN_LISTBASE_FUNCS_DEF(gpencils)
99RNA_MAIN_LISTBASE_FUNCS_DEF(grease_pencils)
100RNA_MAIN_LISTBASE_FUNCS_DEF(hair_curves)
101RNA_MAIN_LISTBASE_FUNCS_DEF(images)
102RNA_MAIN_LISTBASE_FUNCS_DEF(lattices)
103RNA_MAIN_LISTBASE_FUNCS_DEF(libraries)
104RNA_MAIN_LISTBASE_FUNCS_DEF(lightprobes)
105RNA_MAIN_LISTBASE_FUNCS_DEF(lights)
106RNA_MAIN_LISTBASE_FUNCS_DEF(linestyles)
107RNA_MAIN_LISTBASE_FUNCS_DEF(masks)
108RNA_MAIN_LISTBASE_FUNCS_DEF(materials)
109RNA_MAIN_LISTBASE_FUNCS_DEF(meshes)
110RNA_MAIN_LISTBASE_FUNCS_DEF(metaballs)
111RNA_MAIN_LISTBASE_FUNCS_DEF(movieclips)
112RNA_MAIN_LISTBASE_FUNCS_DEF(nodetrees)
113RNA_MAIN_LISTBASE_FUNCS_DEF(objects)
114RNA_MAIN_LISTBASE_FUNCS_DEF(paintcurves)
115RNA_MAIN_LISTBASE_FUNCS_DEF(palettes)
116RNA_MAIN_LISTBASE_FUNCS_DEF(particles)
117RNA_MAIN_LISTBASE_FUNCS_DEF(pointclouds)
118RNA_MAIN_LISTBASE_FUNCS_DEF(scenes)
119RNA_MAIN_LISTBASE_FUNCS_DEF(screens)
120RNA_MAIN_LISTBASE_FUNCS_DEF(shapekeys)
121RNA_MAIN_LISTBASE_FUNCS_DEF(sounds)
122RNA_MAIN_LISTBASE_FUNCS_DEF(speakers)
123RNA_MAIN_LISTBASE_FUNCS_DEF(texts)
124RNA_MAIN_LISTBASE_FUNCS_DEF(textures)
125RNA_MAIN_LISTBASE_FUNCS_DEF(volumes)
126RNA_MAIN_LISTBASE_FUNCS_DEF(wm)
127RNA_MAIN_LISTBASE_FUNCS_DEF(workspaces)
128RNA_MAIN_LISTBASE_FUNCS_DEF(worlds)
130# undef RNA_MAIN_LISTBASE_FUNCS_DEF
135 value[0] = bmain->versionfile / 100;
136 value[1] = bmain->versionfile % 100;
137 value[2] = bmain->subversionfile;
145 ret.type = &RNA_Test;
175 "rna_Main_cameras_begin",
177 "Camera data-blocks",
181 "rna_Main_scenes_begin",
187 "rna_Main_objects_begin",
189 "Object data-blocks",
193 "rna_Main_materials_begin",
195 "Material data-blocks",
199 "rna_Main_nodetrees_begin",
201 "Node group data-blocks",
205 "rna_Main_meshes_begin",
211 "rna_Main_lights_begin",
217 "rna_Main_libraries_begin",
219 "Library data-blocks",
223 "rna_Main_screens_begin",
225 "Screen data-blocks",
231 "Window manager data-blocks",
235 "rna_Main_images_begin",
241 "rna_Main_lattices_begin",
243 "Lattice data-blocks",
247 "rna_Main_curves_begin",
253 "rna_Main_metaballs_begin",
255 "Metaball data-blocks",
259 "rna_Main_fonts_begin",
261 "Vector font data-blocks",
265 "rna_Main_textures_begin",
267 "Texture data-blocks",
271 "rna_Main_brushes_begin",
277 "rna_Main_worlds_begin",
283 "rna_Main_collections_begin",
285 "Collection data-blocks",
289 "rna_Main_shapekeys_begin",
291 "Shape Key data-blocks",
293 {
"texts",
"Text",
"rna_Main_texts_begin",
"Texts",
"Text data-blocks",
RNA_def_main_texts},
296 "rna_Main_speakers_begin",
298 "Speaker data-blocks",
302 "rna_Main_sounds_begin",
308 "rna_Main_armatures_begin",
310 "Armature data-blocks",
314 "rna_Main_actions_begin",
316 "Action data-blocks",
320 "rna_Main_particles_begin",
322 "Particle data-blocks",
326 "rna_Main_palettes_begin",
328 "Palette data-blocks",
332 "rna_Main_gpencils_begin",
334 "Annotation data-blocks (legacy Grease Pencil)",
336 {
"grease_pencils_v3",
338 "rna_Main_grease_pencils_begin",
340 "Grease Pencil data-blocks",
344 "rna_Main_movieclips_begin",
346 "Movie Clip data-blocks",
348 {
"masks",
"Mask",
"rna_Main_masks_begin",
"Masks",
"Masks data-blocks",
RNA_def_main_masks},
350 "FreestyleLineStyle",
351 "rna_Main_linestyles_begin",
353 "Line Style data-blocks",
357 "rna_Main_cachefiles_begin",
359 "Cache Files data-blocks",
363 "rna_Main_paintcurves_begin",
365 "Paint Curves data-blocks",
369 "rna_Main_workspaces_begin",
371 "Workspace data-blocks",
375 "rna_Main_lightprobes_begin",
377 "Light Probe data-blocks",
385 "rna_Main_hair_curves_begin",
387 "Hair curve data-blocks",
391 "rna_Main_pointclouds_begin",
393 "Point cloud data-blocks",
397 "rna_Main_volumes_begin",
399 "Volume data-blocks",
401 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
nullptr},
409 "Main data structure representing a .blend file and all its data-blocks");
415 prop,
"rna_Main_filepath_get",
"rna_Main_filepath_length",
nullptr);
423 prop,
"File Has Unsaved Changes",
"Have recent edits been saved to disk");
429 prop,
"File is Saved",
"Has the current session been saved to disk as a .blend file");
434 prop,
"Use Auto-Pack",
"Automatically pack all external data into .blend file");
443 "File format version the .blend file was saved with",
450 for (
i = 0; lists[
i].
name;
i++) {
455 "rna_iterator_listbase_next",
456 "rna_iterator_listbase_end",
457 "rna_iterator_listbase_get",
char * STRNCPY(char(&dst)[N], const char *src)
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
void RNA_define_verify_sdna(bool verify)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
void RNA_def_property_collection_funcs(PropertyRNA *prop, const char *begin, const char *next, const char *end, const char *get, const char *length, const char *lookupint, const char *lookupstring, const char *assignint)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
PropertyRNA * RNA_def_int_vector(StructOrFunctionRNA *cont_, const char *identifier, const int len, const int *default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
void RNA_def_property_string_maxlength(PropertyRNA *prop, int maxlength)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)
void RNA_def_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_main_window_managers(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_curves(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_cameras(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_worlds(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_textures(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_lightprobes(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_grease_pencil(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_movieclips(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_screens(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_images(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_volumes(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_node_groups(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_meshes(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_hair_curves(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_pointclouds(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_libraries(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_paintcurves(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_texts(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_lights(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_actions(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_palettes(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_api_main(StructRNA *srna)
void RNA_def_main_particles(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_annotations(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_lattices(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_masks(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_cachefiles(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_fonts(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_metaballs(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_speakers(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_scenes(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_collections(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_materials(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_workspaces(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_sounds(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_armatures(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_linestyles(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_brushes(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_objects(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main(BlenderRNA *brna)
void(BlenderRNA *brna, PropertyRNA *cprop) CollectionDefFunc