61 return G.relbase_valid;
70 return !wm->file_saved;
76 static void rna_Main_filepath_get(
PointerRNA *
ptr,
char *value)
85 return strlen(bmain->
name);
89 static void rna_Main_filepath_set(
PointerRNA *
ptr,
const char *value)
96 # define RNA_MAIN_LISTBASE_FUNCS_DEF(_listbase_name) \
97 static void rna_Main_##_listbase_name##_begin(CollectionPropertyIterator *iter, \
100 rna_iterator_listbase_begin(iter, &((Main *)ptr->data)->_listbase_name, NULL); \
103 RNA_MAIN_LISTBASE_FUNCS_DEF(actions)
104 RNA_MAIN_LISTBASE_FUNCS_DEF(armatures)
105 RNA_MAIN_LISTBASE_FUNCS_DEF(brushes)
106 RNA_MAIN_LISTBASE_FUNCS_DEF(cachefiles)
107 RNA_MAIN_LISTBASE_FUNCS_DEF(cameras)
108 RNA_MAIN_LISTBASE_FUNCS_DEF(collections)
109 RNA_MAIN_LISTBASE_FUNCS_DEF(curves)
110 RNA_MAIN_LISTBASE_FUNCS_DEF(fonts)
111 RNA_MAIN_LISTBASE_FUNCS_DEF(gpencils)
112 # ifdef WITH_HAIR_NODES
113 RNA_MAIN_LISTBASE_FUNCS_DEF(hairs)
115 RNA_MAIN_LISTBASE_FUNCS_DEF(images)
116 RNA_MAIN_LISTBASE_FUNCS_DEF(lattices)
117 RNA_MAIN_LISTBASE_FUNCS_DEF(libraries)
118 RNA_MAIN_LISTBASE_FUNCS_DEF(lightprobes)
119 RNA_MAIN_LISTBASE_FUNCS_DEF(lights)
120 RNA_MAIN_LISTBASE_FUNCS_DEF(linestyles)
121 RNA_MAIN_LISTBASE_FUNCS_DEF(masks)
122 RNA_MAIN_LISTBASE_FUNCS_DEF(materials)
123 RNA_MAIN_LISTBASE_FUNCS_DEF(meshes)
124 RNA_MAIN_LISTBASE_FUNCS_DEF(metaballs)
125 RNA_MAIN_LISTBASE_FUNCS_DEF(movieclips)
126 RNA_MAIN_LISTBASE_FUNCS_DEF(nodetrees)
127 RNA_MAIN_LISTBASE_FUNCS_DEF(objects)
128 RNA_MAIN_LISTBASE_FUNCS_DEF(paintcurves)
129 RNA_MAIN_LISTBASE_FUNCS_DEF(palettes)
130 RNA_MAIN_LISTBASE_FUNCS_DEF(particles)
131 # ifdef WITH_POINT_CLOUD
132 RNA_MAIN_LISTBASE_FUNCS_DEF(pointclouds)
134 RNA_MAIN_LISTBASE_FUNCS_DEF(scenes)
135 RNA_MAIN_LISTBASE_FUNCS_DEF(screens)
136 RNA_MAIN_LISTBASE_FUNCS_DEF(shapekeys)
137 # ifdef WITH_GEOMETRY_NODES
138 RNA_MAIN_LISTBASE_FUNCS_DEF(simulations)
140 RNA_MAIN_LISTBASE_FUNCS_DEF(sounds)
141 RNA_MAIN_LISTBASE_FUNCS_DEF(speakers)
142 RNA_MAIN_LISTBASE_FUNCS_DEF(texts)
143 RNA_MAIN_LISTBASE_FUNCS_DEF(
textures)
144 RNA_MAIN_LISTBASE_FUNCS_DEF(volumes)
145 RNA_MAIN_LISTBASE_FUNCS_DEF(wm)
146 RNA_MAIN_LISTBASE_FUNCS_DEF(workspaces)
147 RNA_MAIN_LISTBASE_FUNCS_DEF(worlds)
149 # undef RNA_MAIN_LISTBASE_FUNCS_DEF
151 static void rna_Main_version_get(
PointerRNA *
ptr,
int *value)
164 ret.type = &RNA_Test;
195 "rna_Main_cameras_begin",
197 "Camera data-blocks",
201 "rna_Main_scenes_begin",
207 "rna_Main_objects_begin",
209 "Object data-blocks",
213 "rna_Main_materials_begin",
215 "Material data-blocks",
219 "rna_Main_nodetrees_begin",
221 "Node group data-blocks",
225 "rna_Main_meshes_begin",
231 "rna_Main_lights_begin",
237 "rna_Main_libraries_begin",
239 "Library data-blocks",
243 "rna_Main_screens_begin",
245 "Screen data-blocks",
251 "Window manager data-blocks",
255 "rna_Main_images_begin",
261 "rna_Main_lattices_begin",
263 "Lattice data-blocks",
267 "rna_Main_curves_begin",
273 "rna_Main_metaballs_begin",
275 "Metaball data-blocks",
279 "rna_Main_fonts_begin",
281 "Vector font data-blocks",
285 "rna_Main_textures_begin",
287 "Texture data-blocks",
291 "rna_Main_brushes_begin",
297 "rna_Main_worlds_begin",
303 "rna_Main_collections_begin",
305 "Collection data-blocks",
309 "rna_Main_shapekeys_begin",
311 "Shape Key data-blocks",
313 {
"texts",
"Text",
"rna_Main_texts_begin",
"Texts",
"Text data-blocks",
RNA_def_main_texts},
316 "rna_Main_speakers_begin",
318 "Speaker data-blocks",
322 "rna_Main_sounds_begin",
328 "rna_Main_armatures_begin",
330 "Armature data-blocks",
334 "rna_Main_actions_begin",
336 "Action data-blocks",
340 "rna_Main_particles_begin",
342 "Particle data-blocks",
346 "rna_Main_palettes_begin",
348 "Palette data-blocks",
352 "rna_Main_gpencils_begin",
354 "Grease Pencil data-blocks",
358 "rna_Main_movieclips_begin",
360 "Movie Clip data-blocks",
362 {
"masks",
"Mask",
"rna_Main_masks_begin",
"Masks",
"Masks data-blocks",
RNA_def_main_masks},
364 "FreestyleLineStyle",
365 "rna_Main_linestyles_begin",
367 "Line Style data-blocks",
371 "rna_Main_cachefiles_begin",
373 "Cache Files data-blocks",
377 "rna_Main_paintcurves_begin",
379 "Paint Curves data-blocks",
383 "rna_Main_workspaces_begin",
385 "Workspace data-blocks",
389 "rna_Main_lightprobes_begin",
391 "Light Probe data-blocks",
393 # ifdef WITH_HAIR_NODES
394 {
"hairs",
"Hair",
"rna_Main_hairs_begin",
"Hairs",
"Hair data-blocks", RNA_def_main_hairs},
396 # ifdef WITH_POINT_CLOUD
399 "rna_Main_pointclouds_begin",
401 "Point cloud data-blocks",
402 RNA_def_main_pointclouds},
406 "rna_Main_volumes_begin",
408 "Volume data-blocks",
410 # ifdef WITH_GEOMETRY_NODES
413 "rna_Main_simulations_begin",
415 "Simulation data-blocks",
416 RNA_def_main_simulations},
426 "Main data structure representing a .blend file and all its data-blocks");
432 prop,
"rna_Main_filepath_get",
"rna_Main_filepath_length",
"rna_Main_filepath_set");
440 prop,
"File Has Unsaved Changes",
"Have recent edits been saved to disk");
446 prop,
"File is Saved",
"Has the current session been saved to disk as a .blend file");
451 prop,
"Use Auto-Pack",
"Automatically pack all external data into .blend file");
460 "File format version the .blend file was saved with",
467 for (i = 0; lists[i].
name; i++) {
472 "rna_iterator_listbase_next",
473 "rna_iterator_listbase_end",
474 "rna_iterator_listbase_get",
482 func = lists[i].
func;
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, const size_t maxncpy) ATTR_NONNULL()
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint * textures
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)
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)
PropertyRNA * RNA_def_int_vector(StructOrFunctionRNA *cont_, const char *identifier, int len, const int *default_value, int hardmin, int hardmax, const char *ui_name, const char *ui_description, int softmin, int softmax)
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)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
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_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_api_main(struct StructRNA *srna)
void RNA_def_main_meshes(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_gpencil(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_actions(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_palettes(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_main_particles(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() CollectionDefFunc(struct BlenderRNA *brna, struct PropertyRNA *cprop)
struct MainCollectionDef MainCollectionDef