|
Blender V4.3
|
Public Attributes | |
| ThreadMutex | lock |
| char | main_filepath [FILE_MAX] |
| Main * | current_main |
| FileList * | filelist |
| char | cur_relbase [FILE_MAX_LIBEXTRA] |
| asset_system::AssetLibrary * | load_asset_library |
| bool | only_main_data |
| FileList * | tmp_filelist |
Definition at line 3071 of file filelist.cc.
| char FileListReadJob::cur_relbase[FILE_MAX_LIBEXTRA] |
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 3081 of file filelist.cc.
Referenced by current_relpath_append(), and filelist_readjob_recursive_dir_add_items().
| Main* FileListReadJob::current_main |
Definition at line 3074 of file filelist.cc.
Referenced by filelist_readjob_all_asset_library(), filelist_readjob_asset_library(), filelist_readjob_load_asset_library_data(), filelist_readjob_main_assets_add_items(), and filelist_readjob_start().
| FileList* FileListReadJob::filelist |
Definition at line 3075 of file filelist.cc.
Referenced by filelist_readjob_asset_library(), filelist_readjob_endjob(), filelist_readjob_load_asset_library_data(), filelist_readjob_start(), filelist_readjob_startjob(), and filelist_readjob_update().
| asset_system::AssetLibrary* FileListReadJob::load_asset_library |
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 3087 of file filelist.cc.
Referenced by filelist_readjob_all_asset_library(), filelist_readjob_list_lib_add_datablock(), filelist_readjob_load_asset_library_data(), filelist_readjob_main_assets_add_items(), and filelist_readjob_recursive_dir_add_items().
| ThreadMutex FileListReadJob::lock |
Definition at line 3072 of file filelist.cc.
Referenced by filelist_readjob_append_entries(), filelist_readjob_free(), filelist_readjob_start(), filelist_readjob_startjob(), and filelist_readjob_update().
| char FileListReadJob::main_filepath[FILE_MAX] |
Definition at line 3073 of file filelist.cc.
Referenced by filelist_readjob_recursive_dir_add_items(), and filelist_readjob_start().
| bool FileListReadJob::only_main_data |
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 3090 of file filelist.cc.
Referenced by filelist_readjob_all_asset_library(), filelist_readjob_asset_library(), filelist_readjob_is_partial_read(), and filelist_readjob_start().
| FileList* FileListReadJob::tmp_filelist |
Shallow copy of filelist for thread-safe access.
The job system calls filelist_readjob_update which moves any read file from tmp_filelist into filelist in a thread-safe way.
tmp_filelist also keeps an AssetLibrary * so that it can be loaded in the same thread, and moved to filelist once all categories are loaded.
NOTE: tmp_filelist is freed in filelist_readjob_free, so any copied pointers need to be set to nullptr to avoid double-freeing them.
Definition at line 3102 of file filelist.cc.
Referenced by filelist_readjob_all_asset_library(), filelist_readjob_append_entries(), filelist_readjob_asset_library(), filelist_readjob_do(), filelist_readjob_free(), filelist_readjob_load_asset_library_data(), filelist_readjob_main_assets(), filelist_readjob_main_assets_add_items(), filelist_readjob_recursive_dir_add_items(), filelist_readjob_startjob(), and filelist_readjob_update().