Blender V5.0
BKE_library.hh File Reference
#include "DNA_ID.h"
#include "BLI_map.hh"
#include "BLI_set.hh"
#include "BLI_string_ref.hh"
#include "BKE_main.hh"

Go to the source code of this file.

Classes

struct  blender::bke::library::LibraryRuntime

Namespaces

namespace  blender
namespace  blender::bke
namespace  blender::bke::library

Enumerations

enum  eLibrary_Tag { LIBRARY_TAG_RESYNC_REQUIRED = 1 << 0 , LIBRARY_ASSET_EDITABLE = 1 << 1 , LIBRARY_ASSET_FILE_WRITABLE = 1 << 2 , LIBRARY_IS_ASSET_EDIT_FILE = 1 << 3 }

Functions

Libraryblender::bke::library::search_filepath_abs (ListBase *libraries, blender::StringRef filepath_abs)
void blender::bke::library::pack_linked_id_hierarchy (Main &bmain, ID &root_id)
void blender::bke::library::main_cleanup_parent_archives (Main &bmain)
Libraryblender::bke::library::ensure_archive_library (Main &bmain, ID &id, Library &reference_library, const IDHash &id_deep_hash, bool &is_new)
void BKE_library_filepath_set (Main *bmain, Library *lib, const char *filepath)
void BKE_library_main_rebuild_hierarchy (Main *bmain)

Detailed Description

API to manage Library data-blocks.

Definition in file BKE_library.hh.

Enumeration Type Documentation

◆ eLibrary_Tag

#LibraryRuntime.tag

Enumerator
LIBRARY_TAG_RESYNC_REQUIRED 

Automatic recursive re-synchronize was needed when linking/loading data from that library.

LIBRARY_ASSET_EDITABLE 

Data-blocks from this library are editable in the UI despite being linked. Used for asset that can be temporarily or permanently edited. Currently all data-blocks from this library will be edited. In the future this may need to become per data-block to handle cases where a library is both used for editable assets and linked into the blend file for other reasons.

LIBRARY_ASSET_FILE_WRITABLE 

The blend file of this library is writable for asset editing.

LIBRARY_IS_ASSET_EDIT_FILE 

The blend file of this library has the G_FILE_ASSET_EDIT_FILE flag set (refer to it for more info).

Definition at line 112 of file BKE_library.hh.

Function Documentation

◆ BKE_library_filepath_set()

void BKE_library_filepath_set ( Main * bmain,
Library * lib,
const char * filepath )

◆ BKE_library_main_rebuild_hierarchy()