Blender
V3.3
|
Public Member Functions | |
AssetList ()=delete | |
AssetList (AssetList &&other)=default | |
~AssetList ()=default | |
Asset list API | |
Internally re-uses FileList from the File Browser. It does all the heavy lifting already. | |
AssetList (eFileSelectType filesel_type, const AssetLibraryReference &asset_library_ref) | |
void | setup () |
void | fetch (const bContext &C) |
void | ensurePreviewsJob (bContext *C) |
void | clear (bContext *C) |
bool | needsRefetch () const |
void | iterate (AssetListIterFn fn) const |
bool | listen (const wmNotifier ¬ifier) const |
int | size () const |
void | tagMainDataDirty () const |
void | remapID (ID *id_old, ID *id_new) const |
StringRef | filepath () const |
Definition at line 100 of file asset_list.cc.
|
delete |
blender::ed::asset::AssetList::AssetList | ( | eFileSelectType | filesel_type, |
const AssetLibraryReference & | asset_library_ref | ||
) |
Definition at line 125 of file asset_list.cc.
|
default |
|
default |
Definition at line 239 of file asset_list.cc.
References C, CTX_wm_manager(), filelist_clear(), filelist_freelib(), filelist_readjob_stop(), NC_ASSET, ND_ASSET_LIST, and WM_main_add_notifier().
Referenced by ED_assetlist_clear().
Definition at line 215 of file asset_list.cc.
References C, blender::ed::asset::PreviewTimer::ensureRunning(), filelist_cache_previews_done(), filelist_cache_previews_running(), filelist_cache_previews_set(), filelist_cache_previews_update(), filelist_file_cache_block(), filelist_file_cache_slidingwindow_set(), filelist_files_ensure(), and blender::ed::asset::PreviewTimer::stop().
Referenced by ED_assetlist_ensure_previews_job().
Definition at line 173 of file asset_list.cc.
References C, CTX_wm_manager(), filelist_clear_from_reset_tag(), filelist_filter(), filelist_needs_force_reset(), filelist_needs_reading(), filelist_pending(), filelist_readjob_start(), filelist_readjob_stop(), filelist_sort(), NC_ASSET, and ND_ASSET_LIST_READING.
StringRef blender::ed::asset::AssetList::filepath | ( | ) | const |
Definition at line 299 of file asset_list.cc.
References filelist_dir().
Referenced by ED_assetlist_library_path().
void blender::ed::asset::AssetList::iterate | ( | AssetListIterFn | fn | ) | const |
Definition at line 196 of file asset_list.cc.
References file, FILE_TYPE_ASSET, filelist_file(), and filelist_files_ensure().
Referenced by ED_assetlist_iterate().
bool blender::ed::asset::AssetList::listen | ( | const wmNotifier & | notifier | ) | const |
Definition at line 254 of file asset_list.cc.
References wmNotifier::action, wmNotifier::category, wmNotifier::data, ELEM, NA_ADDED, NA_EDITED, NA_REMOVED, NA_RENAME, NC_ASSET, NC_ID, ND_ASSET_LIST, ND_ASSET_LIST_PREVIEW, and ND_ASSET_LIST_READING.
Referenced by ED_assetlist_listen().
bool blender::ed::asset::AssetList::needsRefetch | ( | ) | const |
Definition at line 191 of file asset_list.cc.
References filelist_needs_force_reset(), and filelist_needs_reading().
Definition at line 291 of file asset_list.cc.
References tagMainDataDirty().
void blender::ed::asset::AssetList::setup | ( | ) |
Definition at line 130 of file asset_list.cc.
References ASSET_LIBRARY_CUSTOM, BKE_preferences_asset_library_find_from_index(), BLI_assert, BLI_strncpy(), AssetLibraryReference::custom_library_index, file_indexer_asset, file_indexer_noop, FILE_MAXDIR, FILE_SELECT_MAX_RECURSIONS, FILE_SORT_ALPHA, FILE_TYPE_BLENDERLIB, filelist_setdir(), filelist_setfilter_options(), filelist_setindexer(), filelist_setlibrary(), filelist_setrecursion(), filelist_setsorting(), FILTER_ID_ALL, bUserAssetLibrary::path, AssetLibraryReference::type, and USER_EXPERIMENTAL_TEST.
int blender::ed::asset::AssetList::size | ( | ) | const |
Definition at line 279 of file asset_list.cc.
References filelist_files_ensure().
Referenced by ED_assetlist_size().
void blender::ed::asset::AssetList::tagMainDataDirty | ( | ) | const |
Definition at line 284 of file asset_list.cc.
References filelist_needs_reset_on_main_changes(), and filelist_tag_force_reset_mainfiles().
Referenced by remapID().