|
Blender V4.3
|
#include "BLI_compiler_attrs.h"Go to the source code of this file.
Functions | |
| void | BKE_library_filepath_set (Main *bmain, Library *lib, const char *filepath) |
| void | BKE_library_main_rebuild_hierarchy (Main *bmain) |
API to manage Library data-blocks.
Definition in file BKE_library.hh.
Definition at line 135 of file library.cc.
References BKE_main_blendfile_path(), BLI_path_abs(), BLI_path_is_rel(), lib, and STRNCPY.
Referenced by BLO_main_validate_libraries(), library_foreach_path(), blender::ed::outliner::namebutton_fn(), and blender::bke::tests::TEST_F().
| void BKE_library_main_rebuild_hierarchy | ( | Main * | bmain | ) |
Rebuild the hierarchy of libraries, after e.g. deleting or relocating one, often some indirectly linked libraries lose their 'parent' pointer, making them wrongly directly used ones.
Definition at line 234 of file library.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BKE_main_relations_create(), BKE_main_relations_free(), BLI_assert, BLI_ghash_lookup(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), FOREACH_MAIN_ID_BEGIN, FOREACH_MAIN_ID_END, MainIDRelationsEntry::from_ids, ID_IS_LINKED, int, blender::Vector< T, InlineBufferCapacity, Allocator >::last(), ID::lib, Main::libraries, LISTBASE_FOREACH, Library_Runtime::parent, rebuild_hierarchy_best_parent_find(), Main::relations, MainIDRelations::relations_from_pointers, Library::runtime, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and Library_Runtime::temp_index.
Referenced by BKE_blendfile_library_relocate(), BKE_id_free_us(), and id_delete().