|
Blender V5.0
|
#include <BKE_main.hh>
Inherits blender::NonCopyable, and blender::NonMovable.
Public Member Functions | |
| Main () | |
| ~Main () | |
| Public Member Functions inherited from blender::NonCopyable | |
| NonCopyable (const NonCopyable &other)=delete | |
| NonCopyable & | operator= (const NonCopyable &other)=delete |
| NonCopyable ()=default | |
| NonCopyable (NonCopyable &&other)=default | |
| NonCopyable & | operator= (NonCopyable &&other)=default |
| Public Member Functions inherited from blender::NonMovable | |
| NonMovable (NonMovable &&other)=delete | |
| NonMovable & | operator= (NonMovable &&other)=delete |
| NonMovable ()=default | |
| NonMovable (const NonMovable &other)=default | |
| NonMovable & | operator= (const NonMovable &other)=default |
Definition at line 160 of file BKE_main.hh.
| Main::Main | ( | ) |
Definition at line 49 of file main.cc.
References BLI_spin_init(), is_action_slot_to_id_map_dirty, lock, and MEM_mallocN().
Referenced by ~Main().
| Main::~Main | ( | ) |
Definition at line 62 of file main.cc.
References BKE_main_clear(), BLI_assert_msg, BLI_spin_end(), filepath, lock, Main(), MEM_freeN(), and split_mains.
| ListBase Main::actions = {} |
Definition at line 300 of file BKE_main.hh.
Referenced by BKE_main_lists_get(), blo_do_versions_250(), blo_do_versions_280(), blo_do_versions_290(), blo_do_versions_300(), blo_do_versions_400(), blo_do_versions_440(), blo_do_versions_pre250(), blender::animrig::versioning::convert_legacy_animato_actions(), do_versions_after_linking_450(), nlaedit_add_actionclip_exec(), blender::ed::outliner::outliner_action_set_exec(), blender::animrig::internal::rebuild_slot_user_cache(), and which_libbase().
| ListBase Main::armatures = {} |
Definition at line 299 of file BKE_main.hh.
Referenced by BKE_animdata_main_cb(), BKE_main_lists_get(), blo_do_versions_250(), blo_do_versions_270(), blo_do_versions_280(), blo_do_versions_290(), blo_do_versions_300(), blo_do_versions_410(), blo_do_versions_450(), blo_do_versions_pre250(), do_versions_after_linking_420(), do_versions_after_linking_500(), do_versions_idproperty_ui_data(), version_bonelayers_to_bonecollections(), version_set_default_bone_drawtype(), version_system_idprops_children_bones_generate(), version_system_idprops_generate(), and which_libbase().
| BlendThumbnail* Main::blen_thumb = nullptr |
The blend-file thumbnail. If set, it will show as image preview of the blend-file in the system's file-browser.
Definition at line 259 of file BKE_main.hh.
Referenced by BKE_main_clear(), BKE_main_thumbnail_create(), BKE_main_thumbnail_from_buffer(), BKE_main_thumbnail_from_imbuf(), BKE_main_thumbnail_to_imbuf(), blo_read_file_internal(), and wm_file_write().
| ListBase Main::brushes = {} |
Definition at line 302 of file BKE_main.hh.
Referenced by BKE_brush_first_search(), BKE_main_lists_get(), blo_do_versions_250(), blo_do_versions_260(), blo_do_versions_270(), blo_do_versions_280(), blo_do_versions_290(), blo_do_versions_300(), blo_do_versions_410(), blo_do_versions_420(), blo_do_versions_430(), blo_do_versions_440(), blo_do_versions_pre250(), BLO_update_defaults_startup_blend(), do_version_curvemapping_walker(), do_versions_after_linking_280(), do_versions_after_linking_290(), texture_changed(), unpin_file_local_grease_pencil_brush_materials(), update_brush_sizes(), version_convert_sculpt_planar_brushes(), and which_libbase().
| uint64_t Main::build_commit_timestamp = 0 |
Commit timestamp from buildinfo.
Definition at line 202 of file BKE_main.hh.
Referenced by read_global().
| char Main::build_hash[16] = {} |
Commit Hash from buildinfo.
Definition at line 204 of file BKE_main.hh.
Referenced by read_global().
| ListBase Main::cachefiles = {} |
Definition at line 314 of file BKE_main.hh.
Referenced by animdata_filter_dopesheet(), BKE_animdata_main_cb(), BKE_main_lists_get(), blo_do_versions_290(), and which_libbase().
| ListBase Main::cameras = {} |
Definition at line 289 of file BKE_main.hh.
Referenced by BKE_animdata_main_cb(), BKE_image_walk_all_users(), BKE_main_lists_get(), blo_do_versions_260(), blo_do_versions_270(), blo_do_versions_280(), blo_do_versions_400(), blo_do_versions_430(), blo_do_versions_pre250(), BLO_update_defaults_startup_blend(), do_versions_after_linking_280(), text_update_shader_exec(), and which_libbase().
| ListBase Main::collections = {} |
Definition at line 298 of file BKE_main.hh.
Referenced by BKE_collection_object_cyclic_check(), BKE_collection_object_find(), BKE_collections_child_remove_nulls(), BKE_collections_object_remove_invalids(), BKE_lib_override_library_id_is_user_deletable(), BKE_lib_override_library_main_resync(), BKE_main_collection_sync_remap(), BKE_main_collections_object_cache_free(), BKE_main_collections_parent_relations_rebuild(), BKE_main_lists_get(), blo_do_versions_290(), blo_do_versions_430(), blo_do_versions_pre250(), blender::ed::object::collection_add_info_get_from_op(), blender::ed::object::collection_link_exec(), collection_next_find(), do_versions_after_linking_280(), do_versions_after_linking_290(), lib_override_library_create_post_process(), lib_override_linked_group_tag_clear_boneshapes_objects(), blender::ed::object::make_override_library_exec(), blender::ed::object::make_override_library_invoke(), blender::ed::object::make_override_library_object_overridable_check(), make_selected_objects_local(), blender::ed::object::object_add_sync_rigid_body(), object_in_any_collection(), blender::ed::outliner::outliner_collection_delete(), previews_clear_exec(), blender::ed::object::select_grouped_collection(), ui_template_id_liboverride_hierarchy_make(), and which_libbase().
| MainColorspace Main::colorspace |
Definition at line 274 of file BKE_main.hh.
Referenced by BKE_main_has_issues(), BKE_main_needs_overwrite_confirm(), blo_split_main(), block_create__close_file_dialog(), block_create_save_file_overwrite_dialog(), file_overwrite_detailed_info_show(), IMB_colormanagement_working_space_check(), IMB_colormanagement_working_space_convert(), IMB_colormanagement_working_space_init_default(), IMB_colormanagement_working_space_init_startup(), imb_colormanagement_working_space_set_from_matrix(), blender::bke::blendfile::PartialWriteContext::PartialWriteContext(), read_global(), read_library_file_data(), split_main_newid(), ui_template_status_tooltip(), uiTemplateStatusInfo(), wm_block_file_close_save(), wm_save_as_mainfile_exec(), wm_set_working_color_space_exec(), wm_set_working_color_space_invoke(), and write_global().
The library matching the current Main.
Typically nullptr (for the G_MAIN representing the currently opened blend-file).
Mainly set and used during the blend-file read/write process when 'split' Mains are used to isolate and process all linked IDs from a single library.
Definition at line 269 of file BKE_main.hh.
Referenced by BKE_blendfile_link(), BKE_image_load_exists_in_lib(), BKE_image_load_in_lib(), BKE_libblock_alloc_in_lib(), blo_add_main_for_library(), blo_find_main_for_library_and_idname(), blo_join_main(), blo_read_file_internal(), blo_split_main(), change_ID_link_filedata_get(), create_placeholder(), direct_link_library(), expand_doit_library(), library_id_is_yet_read_main(), library_link_begin(), library_link_end(), read_id_in_lib(), read_libblock_undo_restore_at_old_address(), read_libblock_undo_restore_linked(), read_libraries(), read_library_file_data(), read_library_linked_id(), read_library_linked_ids(), read_undo_move_libmain_data(), read_undo_reuse_noundo_local_ids(), split_libdata(), and split_main_newid().
| ListBase Main::curves = {} |
Definition at line 282 of file BKE_main.hh.
Referenced by BKE_animdata_main_cb(), BKE_main_lists_get(), blo_do_versions_250(), blo_do_versions_260(), blo_do_versions_290(), blo_do_versions_300(), blo_do_versions_400(), blo_do_versions_pre250(), do_versions_after_linking_280(), and which_libbase().
| char Main::filepath[1024] = "" |
The file-path of this blend file, an empty string indicates an unsaved file.
This rule is not strictly enforced as in some cases loading a Main is performed to read data temporarily (preferences & startup) for example where the filepath is not persistent or used as a basis for other paths.
Definition at line 179 of file BKE_main.hh.
Referenced by are_ids_from_different_mains_matching(), AS_asset_library_find_suitable_root_path_from_main(), blender::ed::asset::asset_bundle_install_exec(), blender::ed::asset::asset_bundle_install_poll(), blender::ed::asset::asset_catalogs_save_poll(), blender::bke::asset_edit_id_from_weak_reference(), BKE_main_blendfile_path(), BKE_main_merge(), BKE_memfile_undo_decode(), BKE_modifier_path_relbase(), blo_find_main_for_library_and_idname(), BLO_library_temp_load_id(), blo_read_file_internal(), BLO_write_file_impl(), bpy_rna_data_context_enter(), blender::ed::asset::catalogs_save_from_main_path(), blender::ed::asset::could_be_asset_bundle(), blender::io::alembic::create_abc_metadata(), imb_colormanagement_working_space_set_from_matrix(), main_merge_add_id_to_move(), blender::asset_system::AssetLibrary::on_blend_save_post(), open_exec(), paste_material_exec(), pose_paste_exec(), blender::ed::space_node::preview_prepare_scene(), preview_prepare_scene(), reuse_bmain_data_remapper_ensure(), blender::ed::asset::set_filepath_for_asset_lib(), setup_app_data(), split_main_newid(), blender::asset_system::tests::TEST_F(), blender::asset_system::tests::TEST_F(), blender::asset_system::tests::TEST_F(), WM_file_read(), wm_file_write(), wm_filepath_default(), wm_homefile_read_ex(), workspace_append_button(), write_global(), and ~Main().
| ListBase Main::fonts = {} |
Definition at line 293 of file BKE_main.hh.
Referenced by BKE_main_lists_get(), BKE_packedfile_count_all(), BKE_packedfile_pack_all(), BKE_packedfile_unpack_all(), BKE_vfont_load_exists_ex(), blo_do_versions_pre250(), and which_libbase().
| ListBase Main::gpencils = {} |
Legacy Grease Pencil.
Definition at line 309 of file BKE_main.hh.
Referenced by animdata_filter_dopesheet(), BKE_animdata_main_cb(), BKE_main_lists_get(), blo_do_versions_270(), blo_do_versions_280(), blo_do_versions_290(), blender::bke::greasepencil::convert::legacy_main(), and which_libbase().
| ListBase Main::grease_pencils = {} |
Definition at line 310 of file BKE_main.hh.
Referenced by BKE_animdata_main_cb(), BKE_main_lists_get(), blo_do_versions_400(), blo_do_versions_410(), blo_do_versions_420(), blo_do_versions_500(), fix_curve_nurbs_knot_mode_custom(), and which_libbase().
| ListBase Main::hair_curves = {} |
Definition at line 320 of file BKE_main.hh.
Referenced by BKE_animdata_main_cb(), BKE_main_lists_get(), blo_do_versions_300(), blo_do_versions_430(), blo_do_versions_440(), blo_do_versions_500(), fix_built_in_curve_attribute_defaults(), fix_curve_nurbs_knot_mode_custom(), and which_libbase().
| bool Main::has_forward_compatibility_issues = false |
The currently opened .blend file was written from a newer version of Blender, and has forward compatibility issues (data loss).
Definition at line 192 of file BKE_main.hh.
Referenced by BKE_main_has_issues(), BKE_main_needs_overwrite_confirm(), blo_read_file_internal(), blo_split_main(), block_create_save_file_overwrite_dialog(), file_overwrite_detailed_info_show(), library_link_end(), read_global(), read_library_linked_ids(), ui_template_status_tooltip(), uiTemplateStatusInfo(), wm_block_file_close_save(), and wm_save_as_mainfile_exec().
| IDNameLib_Map* Main::id_map = nullptr |
IDMap of IDs. Currently used when reading (expanding) libraries.
Definition at line 332 of file BKE_main.hh.
Referenced by BKE_main_clear(), blo_join_main(), blo_read_file_internal(), blo_split_main(), create_placeholder(), library_id_is_yet_read_main(), library_link_end(), read_libraries(), and read_library_linked_ids().
| ListBase Main::images = {} |
Definition at line 286 of file BKE_main.hh.
Referenced by blender::ed::object::bake_targets_clear(), BKE_image_all_free_anim_ibufs(), BKE_image_ensure_viewer(), BKE_image_free_all_gputextures(), BKE_image_free_all_textures(), BKE_image_free_anim_gputextures(), BKE_image_free_old_gputextures(), BKE_image_load_exists_in_lib(), BKE_image_paint_set_mipmap(), BKE_image_print_memlist(), BKE_main_lists_get(), BKE_packedfile_count_all(), BKE_packedfile_pack_all(), BKE_packedfile_unpack_all(), blo_do_versions_260(), blo_do_versions_270(), blo_do_versions_280(), blo_do_versions_300(), blo_do_versions_450(), blo_do_versions_pre250(), do_versions_after_linking_300(), ED_image_save_all_modified(), ED_image_save_all_modified_info(), image_unpack_exec(), pack_all_invoke(), previews_clear_exec(), previews_ensure_exec(), texture_paint_camera_project_exec(), which_libbase(), and wm_set_working_color_space_exec().
| bool Main::is_action_slot_to_id_map_dirty = false |
True if the Action Slot-to-ID mapping is dirty.
If this flag is set, the next call to animrig::Slot::users(bmain) and related functions will trigger a rebuild of the Slot-to-ID mapping. Since constructing this mapping requires a full scan of the animatable IDs in this Main anyway, it is kept as a flag here.
Definition at line 253 of file BKE_main.hh.
Referenced by blender::bke::action_foreach_id(), Main(), blender::animrig::internal::rebuild_slot_user_cache(), blender::animrig::Slot::users(), and blender::animrig::Slot::users_invalidate().
| bool Main::is_asset_edit_file = false |
This file was written by the asset system with the G_FILE_ASSET_EDIT_FILE flag (now cleared). It must not be overwritten, except by the asset system itself. Otherwise the file could end up with user created data that would be lost when the asset system regenerates the file.
Definition at line 199 of file BKE_main.hh.
Referenced by blender::bke::asset_write_in_library(), BKE_main_has_issues(), BKE_main_needs_overwrite_confirm(), blo_join_main(), blo_split_main(), BLO_write_file_impl(), block_create_save_file_overwrite_dialog(), file_overwrite_detailed_info_show(), read_global(), save_set_filepath(), setup_app_data(), ui_template_status_tooltip(), and wm_file_write_check_with_report_on_failure().
| bool Main::is_global_main = false |
True if this main is the 'GMAIN' of current Blender.
Definition at line 239 of file BKE_main.hh.
Referenced by BKE_blender_globals_main_replace(), BKE_blender_globals_main_swap(), and BLO_write_file_impl().
| bool Main::is_locked_for_linking = false |
When linking, disallow creation of new data-blocks. Make sure we don't do this by accident, see #76738.
Definition at line 224 of file BKE_main.hh.
Referenced by blender::bke::asset_edit_id_from_weak_reference(), BKE_libblock_alloc_in_lib(), BKE_paint_brush_set(), blo_do_versions_pre250(), do_version_workspaces_create_from_screens(), id_free(), paint_brush_update_from_asset_reference(), and paint_eraser_brush_set_from_asset_reference().
| bool Main::is_memfile_undo_flush_needed = false |
An ID needs its data to be flushed back. use "needs_flush_to_id" in edit data to flag data which needs updating.
Definition at line 213 of file BKE_main.hh.
Referenced by armature_undosys_step_decode(), armature_undosys_step_encode(), curve_undosys_step_decode(), curve_undosys_step_encode(), ED_editors_flush_edits_ex(), font_undosys_step_decode(), font_undosys_step_encode(), lattice_undosys_step_decode(), lattice_undosys_step_encode(), mball_undosys_step_decode(), mball_undosys_step_encode(), memfile_undosys_step_encode(), mesh_undosys_step_decode(), mesh_undosys_step_encode(), blender::ed::curves::undo::step_decode(), blender::ed::greasepencil::undo::step_decode(), blender::ed::pointcloud::undo::step_decode(), blender::ed::sculpt_paint::undo::step_decode(), and blender::ed::sculpt_paint::undo::step_encode().
| bool Main::is_memfile_undo_written = false |
All current ID's exist in the last memfile undo step.
Definition at line 208 of file BKE_main.hh.
Referenced by BKE_lib_id_clear_library_data(), BKE_libblock_alloc_in_lib(), BKE_libblock_management_main_add(), BKE_libblock_management_main_remove(), BKE_libblock_rename(), BKE_memfile_undo_encode(), blender::ed::object::editmode_enter_ex(), and id_delete().
| bool Main::is_read_invalid = false |
When set, indicates that an unrecoverable error/data corruption was detected. Should only be set by readfile code, and used by upper-level code (typically setup_app_data) to cancel a file reading operation.
Definition at line 231 of file BKE_main.hh.
Referenced by add_main_to_main(), BKE_blendfile_read(), BKE_blendfile_read_from_memfile(), BKE_blendfile_read_from_memory(), BKE_blendfile_read_setup_readfile(), BLO_library_link_end(), BLO_library_link_named_part(), blo_read_file_checks(), blo_read_file_internal(), blo_readfile_invalidate(), expand_doit_library(), and library_link_end().
| ListBase Main::lattices = {} |
Definition at line 287 of file BKE_main.hh.
Referenced by BKE_animdata_main_cb(), BKE_main_lists_get(), blo_do_versions_250(), blo_do_versions_pre250(), and which_libbase().
| ListBase Main::libraries = {} |
Definition at line 279 of file BKE_main.hh.
Referenced by BKE_lib_override_library_main_resync(), BKE_library_main_rebuild_hierarchy(), BKE_main_lists_get(), BKE_packedfile_pack_all_libraries(), BKE_packedfile_unpack_all_libraries(), blendfile_or_libraries_versions_atleast(), blo_do_versions_pre250(), blo_read_file_internal(), blo_split_main(), lib_override_libraries_index_define(), library_copy_data(), blender::bke::library::main_cleanup_parent_archives(), main_namemap_validate_and_fix(), blender::ed::space_node::NodeClipboard::paste_validate_id_references(), pyrna_prop_collection_subscript_str_lib_pair_ptr(), read_undo_move_libmain_data(), reuse_bmain_data_remapper_ensure(), reuse_editable_asset_needed(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), which_libbase(), wm_file_write_check_with_report_on_failure(), and write_libraries().
| ListBase Main::lightprobes = {} |
Definition at line 296 of file BKE_main.hh.
Referenced by BKE_main_lists_get(), blo_do_versions_280(), blo_do_versions_400(), blo_do_versions_410(), blo_do_versions_420(), and which_libbase().
| ListBase Main::lights = {} |
Definition at line 288 of file BKE_main.hh.
Referenced by BKE_animdata_main_cb(), BKE_main_lists_get(), blo_do_versions_260(), blo_do_versions_270(), blo_do_versions_280(), blo_do_versions_290(), blo_do_versions_300(), blo_do_versions_400(), blo_do_versions_420(), blo_do_versions_pre250(), BLO_update_defaults_startup_blend(), do_versions_after_linking_280(), do_versions_after_linking_400(), blender::bke::node_tree_iterator_init(), preview_prepare_scene(), previews_clear_exec(), previews_ensure_exec(), shader_preview_free(), and which_libbase().
| ListBase Main::linestyles = {} |
Definition at line 313 of file BKE_main.hh.
Referenced by BKE_animdata_main_cb(), BKE_main_lists_get(), blo_do_versions_260(), blo_do_versions_270(), do_version_curvemapping_walker(), blender::bke::node_tree_iterator_init(), and which_libbase().
| MainLock* Main::lock = nullptr |
Definition at line 343 of file BKE_main.hh.
Referenced by BKE_main_lock(), BKE_main_unlock(), ed_undo_step_post(), ed_undo_step_pre(), Main(), write_file_main_validate_post(), write_file_main_validate_pre(), and ~Main().
| ListBase Main::masks = {} |
Definition at line 312 of file BKE_main.hh.
Referenced by animdata_filter_mask(), BKE_animdata_main_cb(), BKE_main_lists_get(), blo_do_versions_270(), blender::ed::vse::sequencer_add_mask_strip_exec(), and which_libbase().
| ListBase Main::materials = {} |
Definition at line 284 of file BKE_main.hh.
Referenced by BKE_animdata_main_cb(), BKE_image_walk_all_users(), BKE_main_lists_get(), blo_do_versions_250(), blo_do_versions_260(), blo_do_versions_270(), blo_do_versions_280(), blo_do_versions_300(), blo_do_versions_410(), blo_do_versions_420(), blo_do_versions_pre250(), BLO_update_defaults_startup_blend(), blender::io::alembic::utils::build_material_map(), blender::io::usd::build_material_map(), blender::ed::greasepencil::clipboard_materials_remap(), CryptomatteSession::CryptomatteSession(), do_versions_after_linking_280(), do_versions_after_linking_290(), do_versions_after_linking_420(), ED_node_set_active(), ED_render_engine_changed(), GPU_materials_free(), blender::bke::node_tree_iterator_init(), paste_material_exec(), blender::ed::space_node::preview_prepare_scene(), preview_prepare_scene(), previews_clear_exec(), previews_ensure_exec(), shader_preview_free(), switch_preview_floor_material(), and which_libbase().
| ListBase Main::meshes = {} |
Definition at line 281 of file BKE_main.hh.
Referenced by BKE_animdata_main_cb(), BKE_main_lists_get(), BKE_main_mesh_legacy_convert_auto_smooth(), BKE_mesh_legacy_face_map_to_generic(), blo_do_versions_250(), blo_do_versions_260(), blo_do_versions_270(), blo_do_versions_280(), blo_do_versions_290(), blo_do_versions_300(), blo_do_versions_400(), blo_do_versions_410(), blo_do_versions_500(), blo_do_versions_pre250(), blo_update_defaults_scene(), BLO_update_defaults_startup_blend(), do_versions_after_linking_280(), blender::ed::object::single_obdata_users(), version_mesh_crease_generic(), and which_libbase().
| ListBase Main::metaballs = {} |
Definition at line 283 of file BKE_main.hh.
Referenced by BKE_animdata_main_cb(), BKE_main_lists_get(), blo_do_versions_pre250(), and which_libbase().
| short Main::minsubversionfile = 0 |
Definition at line 185 of file BKE_main.hh.
Referenced by read_global().
| short Main::minversionfile = 0 |
Definition at line 184 of file BKE_main.hh.
Referenced by read_global().
| ListBase Main::movieclips = {} |
Definition at line 311 of file BKE_main.hh.
Referenced by animdata_filter_dopesheet_movieclips(), BKE_animdata_main_cb(), BKE_main_lists_get(), BKE_movieclip_file_add_exists_ex(), blo_do_versions_260(), blo_do_versions_270(), blo_do_versions_290(), blo_do_versions_300(), blo_do_versions_420(), blender::bke::greasepencil::convert::legacy_gpencil_sanitize_annotations(), blender::ed::vse::sequencer_add_movieclip_strip_exec(), version_movieclips_legacy_camera_object(), which_libbase(), and wm_set_working_color_space_exec().
| UniqueName_Map* Main::name_map = nullptr |
Used for efficient calculations of unique names.
Definition at line 335 of file BKE_main.hh.
Referenced by BKE_main_clear(), get_namemap_for(), and main_namemap_validate_and_fix().
| UniqueName_Map* Main::name_map_global = nullptr |
Used for efficient calculations of unique names. Covers all names in current Main, including linked data ones.
Definition at line 341 of file BKE_main.hh.
Referenced by BKE_lib_override_library_create_from_id(), BKE_lib_override_library_main_resync(), BKE_lib_override_library_resync(), BKE_main_clear(), get_global_namemap_for(), lib_override_library_create_do(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), and blender::bke::tests::TEST().
| ListBase Main::nodetrees = {} |
Definition at line 301 of file BKE_main.hh.
Referenced by add_subsurf_node_limit_surface_option(), BKE_animdata_main_cb(), BKE_image_walk_all_users(), BKE_main_lists_get(), BKE_main_mesh_legacy_convert_auto_smooth(), blo_do_versions_250(), blo_do_versions_260(), blo_do_versions_290(), blo_do_versions_300(), blo_do_versions_400(), blo_do_versions_410(), blo_do_versions_420(), blo_do_versions_440(), blo_do_versions_450(), blo_do_versions_pre250(), blender::ed::geometry::catalog_assets_draw_unassigned(), do_versions_after_linking_300(), do_versions_after_linking_440(), do_versions_idproperty_ui_data(), enable_geometry_nodes_is_modifier(), hide_simulation_node_skip_socket_value(), blender::bke::greasepencil::convert::legacy_gpencil_sanitize_annotations(), blender::bke::node_tree_iterator_init(), blender::ed::space_node::ui_node_link_items(), blender::ed::object::unassigned_assets_draw(), blender::ed::geometry::unassigned_local_poll(), blender::ed::object::unassigned_local_poll(), version_mesh_crease_generic(), and which_libbase().
| ListBase Main::objects = {} |
Definition at line 280 of file BKE_main.hh.
Referenced by add_bevel_modifier_attribute_name_defaults(), blender::bke::tests::add_id_in_library(), blender::animrig::add_object_data_users(), applyarmature_fix_boneparents(), blender::ed::object::bake(), BKE_animdata_main_cb(), BKE_image_walk_all_users(), BKE_lib_override_library_main_operations_create(), BKE_lib_override_library_main_proxy_convert(), BKE_lib_override_library_update(), BKE_library_make_local(), BKE_main_lib_objects_recalc_all(), BKE_main_lists_get(), BKE_main_mesh_legacy_convert_auto_smooth(), BKE_mball_properties_copy(), BKE_mesh_legacy_face_map_to_generic(), BKE_object_exists_check(), BKE_object_material_slot_remove(), BKE_object_update_select_id(), BKE_objects_materials_sync_length_all(), BKE_packedfile_count_all(), BKE_packedfile_pack_all(), BKE_packedfile_unpack_all(), BKE_scene_set_background(), blo_do_versions_250(), blo_do_versions_260(), blo_do_versions_270(), blo_do_versions_280(), blo_do_versions_290(), blo_do_versions_300(), blo_do_versions_410(), blo_do_versions_420(), blo_do_versions_430(), blo_do_versions_440(), blo_do_versions_450(), blo_do_versions_pre250(), BLO_update_defaults_startup_blend(), bmesh_to_mesh_calc_object_remap(), blender::bke::tests::change_name_global(), clean_viewport_memory(), collection_instantiated_by_any_object(), blender::ed::object::convert_font_to_curve_legacy_generic(), CryptomatteSession::CryptomatteSession(), do_version_adaptive_subdivision(), do_version_curvemapping_walker(), do_versions_after_linking_280(), do_versions_after_linking_290(), do_versions_after_linking_300(), do_versions_after_linking_400(), do_versions_after_linking_420(), do_versions_after_linking_500(), do_versions_idproperty_ui_data(), ED_armature_bone_rename(), ED_armature_from_edit(), ED_editors_exit(), ED_editors_flush_edits_ex(), ED_editors_init(), find_family_object(), blender::animrig::find_related_ids(), blender::ed::geometry::geometry_randomization_exec(), blender::ed::object::ignore_parent_tx(), blender::ed::object::iter_other(), joined_armature_fix_links(), blender::bke::greasepencil::convert::legacy_gpencil_sanitize_annotations(), blender::bke::greasepencil::convert::legacy_main(), lib_override_library_create_post_process(), lib_override_linked_group_tag(), lib_override_linked_group_tag_clear_boneshapes_objects(), libblock_remap_data_postprocess_object_update(), libblock_remap_foreach_idpair(), blender::ed::object::make_local_all__instance_indirect_unused(), blender::ed::object::mesh_needs_keyindex(), move_vertex_group_names_to_object_data(), blender::ed::object::object_data_convert_curve_to_mesh(), blender::ed::object::object_origin_set_exec(), object_preview_scene_create(), blender::ed::outliner::outliner_batch_delete_object_hierarchy(), blender::ed::outliner::outliner_object_set_flag_recursive_fn(), placeholders_ensure_valid(), pose_paste_exec(), previews_clear_exec(), remap_hooks_and_vertex_parents(), scene_changed(), separated_armature_fix_links(), snap_selected_to_location_rotation(), blender::ed::object::tag_localizable_objects(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), version_bonegroup_migrate_color(), version_bonegroups_to_bonecollections(), version_mesh_crease_generic(), version_system_idprops_generate(), version_vertex_weight_edit_preserve_threshold_exclusivity(), view3d_copybuffer_exec(), and which_libbase().
| ListBase Main::paintcurves = {} |
Definition at line 305 of file BKE_main.hh.
Referenced by BKE_main_lists_get(), and which_libbase().
| ListBase Main::palettes = {} |
Definition at line 304 of file BKE_main.hh.
Referenced by BKE_animdata_main_cb(), BKE_gpencil_palette_ensure(), BKE_main_lists_get(), and which_libbase().
| ListBase Main::particles = {} |
Definition at line 303 of file BKE_main.hh.
Referenced by BKE_animdata_main_cb(), BKE_main_lists_get(), blo_do_versions_250(), blo_do_versions_260(), blo_do_versions_270(), blo_do_versions_280(), blo_do_versions_290(), blo_do_versions_pre250(), do_version_curvemapping_walker(), do_versions_after_linking_280(), do_versions_after_linking_400(), and which_libbase().
| ListBase Main::pointclouds = {} |
Definition at line 321 of file BKE_main.hh.
Referenced by BKE_animdata_main_cb(), BKE_main_lists_get(), blo_do_versions_290(), blo_do_versions_500(), and which_libbase().
| bool Main::recovered = false |
Indicate the Main.filepath (file) is the recovered one.
Definition at line 206 of file BKE_main.hh.
Referenced by setup_app_data(), and wm_file_write().
| MainIDRelations* Main::relations = nullptr |
Must be generated, used and freed by same code - never assume this is valid data unless you know when, who and how it was created. Used by code doing a lot of remapping etc. at once to speed things up.
Definition at line 329 of file BKE_main.hh.
Referenced by BKE_libblock_relink_to_newid(), BKE_library_main_rebuild_hierarchy(), BKE_library_make_local(), BKE_main_clear(), BKE_main_relations_create(), BKE_main_relations_free(), BKE_main_relations_tag_set(), lib_override_hierarchy_dependencies_recursive_tag(), lib_override_hierarchy_dependencies_recursive_tag_from(), lib_override_library_id_hierarchy_recursive_reset(), lib_override_library_main_resync_on_library_indirect_level(), lib_override_linked_group_tag_recursive(), lib_override_overrides_group_tag_recursive(), lib_override_resync_tagging_finalize(), lib_override_resync_tagging_finalize_recurse(), lib_override_resync_tagging_finalize_recursive_check_from(), lib_override_root_find(), lib_override_root_hierarchy_set(), lib_override_root_is_valid(), library_foreach_ID_link(), and rebuild_hierarchy_best_parent_find().
| ListBase Main::scenes = {} |
Definition at line 278 of file BKE_main.hh.
Referenced by all_scenes_use(), BKE_animdata_main_cb(), BKE_collection_from_session_uid(), BKE_collections_child_remove_nulls(), BKE_collections_object_remove_invalids(), BKE_image_walk_all_users(), BKE_layer_collection_local_sync_all(), BKE_lib_override_library_main_proxy_convert(), BKE_main_collection_sync(), BKE_main_collection_sync_remap(), BKE_main_collections_object_cache_free(), BKE_main_collections_parent_relations_rebuild(), BKE_main_lists_get(), BKE_main_view_layers_synced_ensure(), BKE_object_scenes_users_get(), BKE_rigidbody_object_copy(), BKE_scene_can_be_removed(), BKE_scene_find_from_collection(), BKE_scene_undo_depsgraphs_extract(), BKE_scene_undo_depsgraphs_restore(), BKE_scene_validate_setscene(), blo_do_versions_250(), blo_do_versions_260(), blo_do_versions_270(), blo_do_versions_280(), blo_do_versions_290(), blo_do_versions_300(), blo_do_versions_400(), blo_do_versions_410(), blo_do_versions_420(), blo_do_versions_430(), blo_do_versions_440(), blo_do_versions_450(), blo_do_versions_500(), blo_do_versions_pre250(), BLO_update_defaults_startup_blend(), clean_paths(), do_version_adaptive_subdivision(), do_version_curvemapping_walker(), do_versions_after_linking_280(), do_versions_after_linking_290(), do_versions_after_linking_300(), do_versions_after_linking_400(), do_versions_after_linking_440(), do_versions_after_linking_500(), do_versions_after_setup(), do_versions_idproperty_ui_data(), DRW_cache_free_old_batches(), ed_marker_make_links_scene_exec(), ED_render_engine_changed(), IMB_colormanagement_check_file_config(), blender::animrig::keyingset_info_unregister(), blender::bke::greasepencil::convert::legacy_gpencil_sanitize_annotations(), lib_link_scenes_check_set(), link_global(), blender::ed::object::make_links_scene_exec(), blender::ed::object::make_override_library_object_overridable_check(), blender::ed::space_node::node_read_viewlayers_exec(), blender::bke::node_tree_iterator_init(), blender::ed::object::object_delete_exec(), object_in_any_collection(), object_in_any_scene(), preview_get_scene(), blender::ed::space_node::preview_prepare_scene(), previews_ensure_exec(), blender::seq::relations_invalidate_compositor_modifiers(), blender::seq::relations_invalidate_movieclip_strips(), blender::seq::relations_invalidate_scene_strips(), screen_render_single_layer_set(), blender::ed::vse::sequencer_add_scene_draw(), blender::ed::vse::sequencer_add_scene_strip_exec(), blender::ed::vse::sequencer_change_scene_exec(), blender::ed::vse::sequencer_clipboard_paste_exec(), setup_app_data(), texture_changed(), uiTemplateRunningJobs(), update_brush_sizes(), update_paint_modes_for_brush_assets(), version_fix_image_format_copy(), version_nla_tweakmode_incomplete(), version_seq_text_from_legacy(), version_sequencer_update_overdrop(), version_system_idprops_generate(), view3d_local_collections_reset(), view_layer_remove_unset_nodetrees(), which_libbase(), wm_block_autorun_warning_enable_scripts(), wm_file_read_report(), wm_set_working_color_space_exec(), and write_renderinfo().
| ListBase Main::screens = {} |
Definition at line 292 of file BKE_main.hh.
Referenced by add_image_editor_asset_shelf(), asset_browser_add_list_view(), BKE_layer_collection_local_sync_all(), BKE_main_lists_get(), blo_do_versions_250(), blo_do_versions_260(), blo_do_versions_270(), blo_do_versions_280(), blo_do_versions_290(), blo_do_versions_300(), blo_do_versions_400(), blo_do_versions_410(), blo_do_versions_420(), blo_do_versions_430(), blo_do_versions_440(), blo_do_versions_450(), blo_do_versions_500(), blo_do_versions_pre250(), BLO_update_defaults_startup_blend(), do_version_workspaces_after_lib_link(), do_version_workspaces_create_from_screens(), do_versions_after_linking_280(), do_versions_after_linking_300(), do_versions_area_ensure_tool_region(), ED_armature_bone_rename(), ED_editors_init_for_undo(), ED_outliner_select_sync_flag_outliners(), ED_previews_tag_dirty_by_id(), ED_render_engine_changed(), ED_screens_init(), ED_update_for_newframe(), ED_view3d_local_collections_reset(), free_localcollection_bit(), free_localview_bit(), get_sequencer_render_size(), gizmotype_unlink(), blender::bke::greasepencil::convert::legacy_gpencil_sanitize_annotations(), screen_change_prepare(), screen_fullscreen_find_associated_normal_screen(), screen_temp_region_exists(), setup_app_data(), spacedata_cleanup_exec(), sync_viewport_camera_smoothview(), toolsystem_ref_set_by_id_pending(), blender::ed::asset::shelf::type_unlink(), update_import_method_for_asset_browsers(), version_set_uv_face_overlay_defaults(), version_show_texpaint_to_show_uv(), which_libbase(), wm_check_screen_exists(), wm_file_read_setup_wm_finalize(), WM_gizmo_group_remove_by_tool(), WM_gizmoconfig_update(), WM_gizmomaptype_group_init_runtime(), WM_gizmomaptype_group_unlink(), WM_main_remap_editor_id_reference(), WM_reinit_gizmomap_all(), wm_uilisttype_unlink(), and wm_xr_session_update_screen().
| ListBase Main::shapekeys = {} |
Definition at line 290 of file BKE_main.hh.
Referenced by BKE_animdata_main_cb(), BKE_main_lists_get(), blo_do_versions_250(), blo_do_versions_260(), blo_do_versions_pre250(), BLO_main_validate_shapekeys(), id_delete(), and which_libbase().
| ListBase Main::sounds = {} |
Definition at line 297 of file BKE_main.hh.
Referenced by BKE_main_lists_get(), BKE_packedfile_count_all(), BKE_packedfile_pack_all(), BKE_packedfile_unpack_all(), BKE_sound_new_file_exists_ex(), blo_do_versions_250(), blo_do_versions_pre250(), sound_unpack_exec(), and which_libbase().
| ListBase Main::speakers = {} |
Definition at line 295 of file BKE_main.hh.
Referenced by BKE_animdata_main_cb(), BKE_main_lists_get(), and which_libbase().
| std::shared_ptr<blender::VectorSet<Main *> > Main::split_mains = {} |
Runtime vector storing all split Mains (one Main for each library data), during readfile or linking process. Shared across all of the split mains when defined.
Definition at line 166 of file BKE_main.hh.
Referenced by after_liblink_merged_bmain_process(), BKE_main_namemap_clear(), blo_add_main_for_library(), blo_find_main_for_library_and_idname(), blo_join_main(), BLO_main_validate_libraries(), blo_read_file_checks(), blo_read_file_internal(), BLO_read_from_memfile(), blo_readfile_invalidate(), blo_split_main(), blo_verify_data_address(), change_ID_pointer_to_real_ID_pointer(), change_link_placeholder_to_real_ID_pointer(), direct_link_library(), library_link_end(), read_libblock_undo_restore_at_old_address(), read_libblock_undo_restore_library(), read_libraries(), read_undo_move_libmain_data(), read_undo_reuse_noundo_local_ids(), and ~Main().
| short Main::subversionfile = 0 |
Definition at line 182 of file BKE_main.hh.
Referenced by add_archive_library(), BKE_blendfile_link(), blo_do_versions_250(), blo_do_versions_260(), blo_do_versions_pre250(), blo_split_main(), direct_link_library(), file_overwrite_detailed_info_show(), read_global(), read_library_file_data(), read_userdef(), and split_main_newid().
| ListBase Main::texts = {} |
Definition at line 294 of file BKE_main.hh.
Referenced by BKE_main_lists_get(), blo_do_versions_260(), blo_do_versions_280(), blo_do_versions_300(), blo_do_versions_pre250(), BPY_modules_load_user(), do_versions_after_linking_290(), do_versions_after_linking_300(), python_script_exec(), text_find_and_replace(), text_jump_to_file_at_point_internal(), and which_libbase().
| ListBase Main::textures = {} |
Definition at line 285 of file BKE_main.hh.
Referenced by BKE_animdata_main_cb(), BKE_image_free_all_textures(), BKE_image_walk_all_users(), BKE_main_lists_get(), blo_do_versions_250(), blo_do_versions_260(), blo_do_versions_280(), blo_do_versions_pre250(), image_changed(), blender::bke::node_tree_iterator_init(), preview_prepare_scene(), previews_clear_exec(), previews_ensure_exec(), shader_preview_free(), and which_libbase().
| bool Main::use_memfile_full_barrier = false |
Indicates that next memfile undo step should not allow reusing old bmain when re-read, but instead do a complete full re-read/update from stored memfile.
Definition at line 218 of file BKE_main.hh.
Referenced by memfile_undosys_step_encode().
| short Main::versionfile = 0 |
Definition at line 181 of file BKE_main.hh.
Referenced by add_archive_library(), BKE_blendfile_link(), BKE_blendfile_workspace_config_read(), blo_do_versions_250(), blo_do_versions_260(), blo_do_versions_290(), blo_do_versions_300(), blo_do_versions_420(), blo_do_versions_pre250(), blo_find_main_for_library_and_idname(), blo_read_file_internal(), blo_split_main(), direct_link_library(), file_overwrite_detailed_info_show(), library_link_begin(), read_library_file_data(), read_userdef(), split_main_newid(), and ui_template_status_tooltip().
| ListBase Main::volumes = {} |
Definition at line 322 of file BKE_main.hh.
Referenced by BKE_animdata_main_cb(), BKE_main_lists_get(), BKE_packedfile_count_all(), BKE_packedfile_pack_all(), BKE_packedfile_unpack_all(), and which_libbase().
| ListBase Main::wm = {} |
Singleton (exception).
Definition at line 307 of file BKE_main.hh.
Referenced by blender::ed::viewer_path::activate_geometry_node(), blender::ed::object::base_active_refresh(), BKE_image_editors_update_frame(), BKE_image_walk_all_users(), BKE_main_lists_get(), BKE_view_layer_rename(), BKE_workspace_id_tag_all_visible(), Freestyle::BlenderStrokeRenderer::BlenderStrokeRenderer(), blo_do_versions_270(), blo_do_versions_280(), blo_do_versions_290(), blo_do_versions_300(), blo_read_file_checks(), BLO_update_defaults_startup_blend(), bpy_rna_context_temp_override_enter_ok_or_error(), check_rendered_viewport_visible(), clean_viewport_memory(), current_screen_compat(), do_version_workspaces_after_lib_link(), do_versions_after_linking_280(), do_versions_after_linking_500(), ED_clip_update_frame(), ED_editors_init_for_undo(), ED_render_engine_area_exit(), ED_render_engine_changed(), ED_render_scene_update(), ED_render_view3d_update(), ED_scene_delete(), ED_scene_view_layer_delete(), ED_space_image_sync(), ED_text_undo_push_init(), ED_view3d_shade_update(), blender::find_side_effect_nodes(), blender::ed::geometry::find_socket_log_contexts(), blender::find_socket_log_contexts(), format_stats(), blender::nodes::node_can_sync_cache_clear(), blender::ed::sculpt_paint::object_sculpt_mode_enter(), render_image_restore_scene_and_layer(), render_image_update_pass_and_layer(), setup_app_data(), sound_jack_sync_callback(), swap_wm_data_for_blendfile(), toolsystem_brush_activate_from_toolref_for_object_paint(), toolsystem_brush_activate_from_toolref_for_object_particle(), toolsystem_brush_clear_paint_reference(), toolsystem_refresh_screen_from_active_tool(), track_markers_endjob(), blender::ed::outliner::tree_element_camera_activate(), blender::ed::viewer_path::update_active_geometry_nodes_viewer(), which_libbase(), wm_block_file_close_save(), WM_check(), wm_check_window_exists(), wm_clear_default_size(), WM_event_remove_modal_handler_all(), wm_file_read_report(), wm_file_read_setup_wm_finalize(), wm_file_read_setup_wm_init(), WM_gizmomaptype_group_init_runtime_keymap(), wm_homefile_read_ex(), WM_main_add_notifier(), WM_main_remap_editor_id_reference(), WM_main_remove_notifier_reference(), wm_read_callback_post_wrapper(), WM_report_banners_cancel(), WM_toolsystem_do_msg_notify_tag_refresh(), WM_toolsystem_ref_sync_from_context(), WM_toolsystem_refresh_active(), WM_toolsystem_refresh_screen_all(), WM_toolsystem_update_from_context_view3d(), wm_uilisttype_unlink(), wm_userpref_read_exec(), WM_window_set_active_view_layer(), wm_xr_session_create_cb(), wm_xr_session_update_screen(), and workspace_blend_read_after_liblink().
| ListBase Main::workspaces = {} |
Definition at line 315 of file BKE_main.hh.
Referenced by BKE_blendfile_workspace_config_read(), BKE_main_lists_get(), BKE_workspace_id_tag_all_visible(), BKE_workspace_instance_hook_create(), BKE_workspace_instance_hook_free(), BKE_workspace_layout_find_global(), blo_do_versions_280(), blo_do_versions_290(), blo_do_versions_300(), blo_do_versions_430(), blo_do_versions_440(), BLO_update_defaults_startup_blend(), do_version_workspaces_after_lib_link(), do_version_workspaces_create_from_screens(), ED_scene_delete(), ED_screens_init(), ED_workspace_delete(), space_workspace_cycle_invoke(), update_paint_modes_for_brush_assets(), which_libbase(), wm_file_read_post(), WM_toolsystem_init(), WM_toolsystem_refresh_active(), workspace_append_activate_exec(), workspace_delete_all_others_exec(), workspace_reorder_to_back_exec(), and workspace_reorder_to_front_exec().
| ListBase Main::worlds = {} |
Definition at line 291 of file BKE_main.hh.
Referenced by BKE_animdata_main_cb(), BKE_main_lists_get(), blo_do_versions_260(), blo_do_versions_280(), blo_do_versions_400(), blo_do_versions_420(), blo_do_versions_pre250(), BLO_update_defaults_startup_blend(), ED_node_set_active(), GPU_materials_free(), blender::bke::node_tree_iterator_init(), preview_get_localized_world(), preview_get_world(), preview_prepare_scene(), previews_clear_exec(), previews_ensure_exec(), shader_preview_free(), and which_libbase().