Blender V5.3
blender::FileListReadJob Struct Reference

#include <filelist_readjob.hh>

Public Attributes

Mutex lock
char main_filepath [1024] = ""
Main * current_main = nullptr
wmWindowManager * wm = nullptr
FileList * filelist = nullptr
ReportList reports
char cur_relbase [1024+258] = ""
asset_system::AssetLibrary * load_asset_library = nullptr
bool only_main_data = false
std::atomic< bool > reload_asset_library = false
Map< std::string, std::unique_ptr< RemoteLibraryRequest > > remote_library_requests
std::optional< std::function< void(asset_system::AssetRepresentation &)> > on_asset_added
FileList * tmp_filelist = nullptr

Detailed Description

Definition at line 58 of file filelist_readjob.hh.

Member Data Documentation

◆ cur_relbase

char blender::FileListReadJob::cur_relbase[1024+258] = ""

The path currently being read, relative to the filelist root directory. Needed for recursive reading. The full file path is then composed like: <filelist root>/<cur_relbase>/<file name>. (whereby the file name may also be a library path within a .blend, e.g. Materials/Material.001).

Definition at line 74 of file filelist_readjob.hh.

Referenced by blender::current_relpath_append(), blender::filelist_readjob_recursive_dir_add_items(), and blender::filelist_readjob_remote_asset_library_index_read().

◆ current_main

◆ filelist

◆ load_asset_library

asset_system::AssetLibrary* blender::FileListReadJob::load_asset_library = nullptr

The current asset library to load. Usually the same as #FileList.asset_library, however sometimes the FileList one is a combination of multiple other ones ("All" asset library), which need to be loaded individually. Then this can be set to override the FileList library. Use this in all loading code.

Definition at line 80 of file filelist_readjob.hh.

Referenced by blender::filelist_readjob_all_asset_library(), blender::filelist_readjob_asset_library(), blender::filelist_readjob_essentials_asset_library(), blender::filelist_readjob_list_lib_add_datablock(), blender::filelist_readjob_load_asset_library_data(), blender::filelist_readjob_main_assets_add_items(), blender::filelist_readjob_recursive_dir_add_items(), blender::filelist_readjob_remote_asset_library_index_read(), and blender::remote_asset_library_load().

◆ lock

◆ main_filepath

char blender::FileListReadJob::main_filepath[1024] = ""

◆ on_asset_added

std::optional<std::function<void(asset_system::AssetRepresentation &)> > blender::FileListReadJob::on_asset_added
Initial value:
=
std::nullopt

Definition at line 91 of file filelist_readjob.hh.

Referenced by blender::filelist_readjob_list_lib_add_datablock(), and blender::remote_asset_library_load().

◆ only_main_data

bool blender::FileListReadJob::only_main_data = false

Set to request a partial read that only adds files representing Main data (IDs). Used when Main may have received changes of interest (e.g. asset removed or renamed).

Definition at line 83 of file filelist_readjob.hh.

Referenced by blender::filelist_readjob_all_asset_library(), blender::filelist_readjob_asset_library(), blender::filelist_readjob_is_partial_read(), and blender::filelist_readjob_start_ex().

◆ reload_asset_library

std::atomic<bool> blender::FileListReadJob::reload_asset_library = false

Trigger a call to AS_asset_library_load() to update asset catalogs (won't reload the actual assets)

Definition at line 87 of file filelist_readjob.hh.

Referenced by blender::filelist_readjob_load_asset_library_data(), and blender::filelist_readjob_start_ex().

◆ remote_library_requests

◆ reports

◆ tmp_filelist

◆ wm

wmWindowManager* blender::FileListReadJob::wm = nullptr

The documentation for this struct was generated from the following file: