|
Blender V5.0
|
Inherits blender::NonCopyable.
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 | ensure_blocking (const bContext &C) |
| void | clear (wmWindowManager *wm) |
| void | clear_current_file_assets (wmWindowManager *wm) |
| bool | needs_refetch () const |
| bool | is_loaded () const |
| asset_system::AssetLibrary * | asset_library () const |
| void | iterate (AssetListIterFn fn) const |
| int | size () const |
| void | tag_main_data_dirty () const |
| void | remap_id (ID *id_old, ID *id_new) const |
| static bool | listen (const wmNotifier ¬ifier) |
Definition at line 83 of file asset_list.cc.
|
delete |
Referenced by AssetList().
| blender::ed::asset::list::AssetList::AssetList | ( | eFileSelectType | filesel_type, |
| const AssetLibraryReference & | asset_library_ref ) |
Definition at line 110 of file asset_list.cc.
|
default |
References AssetList().
|
default |
References C.
| asset_system::AssetLibrary * blender::ed::asset::list::AssetList::asset_library | ( | ) | const |
Definition at line 190 of file asset_list.cc.
References filelist_asset_library().
| void blender::ed::asset::list::AssetList::clear | ( | wmWindowManager * | wm | ) |
Definition at line 212 of file asset_list.cc.
References filelist_clear(), filelist_freelib(), filelist_readjob_stop(), filelist_tag_force_reset(), NC_ASSET, ND_ASSET_LIST, and WM_main_add_notifier().
Referenced by blender::ed::asset::list::clear().
| void blender::ed::asset::list::AssetList::clear_current_file_assets | ( | wmWindowManager * | wm | ) |
Definition at line 225 of file asset_list.cc.
References filelist_clear_from_reset_tag(), filelist_freelib(), filelist_readjob_stop(), filelist_tag_force_reset_mainfiles(), filelist_tag_reload_asset_library(), NC_ASSET, ND_ASSET_LIST, and WM_main_add_notifier().
Referenced by blender::ed::asset::list::clear().
| void blender::ed::asset::list::AssetList::ensure_blocking | ( | const bContext & | C | ) |
Definition at line 164 of file asset_list.cc.
References C, filelist_clear_from_reset_tag(), filelist_filter(), filelist_needs_force_reset(), filelist_needs_reading(), filelist_readjob_blocking_run(), filelist_sort(), NC_ASSET, and ND_ASSET_LIST_READING.
| void blender::ed::asset::list::AssetList::fetch | ( | const bContext & | C | ) |
Definition at line 146 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.
| bool blender::ed::asset::list::AssetList::is_loaded | ( | ) | const |
Definition at line 185 of file asset_list.cc.
References filelist_is_ready().
| void blender::ed::asset::list::AssetList::iterate | ( | AssetListIterFn | fn | ) | const |
Definition at line 195 of file asset_list.cc.
References filelist_entry_get_asset_representation(), filelist_files_ensure(), and i.
|
static |
Definition at line 242 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 blender::ed::asset::list::listen().
| bool blender::ed::asset::list::AssetList::needs_refetch | ( | ) | const |
Definition at line 180 of file asset_list.cc.
References filelist_needs_force_reset(), and filelist_needs_reading().
Definition at line 279 of file asset_list.cc.
References tag_main_data_dirty().
| void blender::ed::asset::list::AssetList::setup | ( | ) |
Definition at line 115 of file asset_list.cc.
References AS_asset_library_root_path_from_library_ref(), blender::ed::asset::index::file_indexer_asset, file_indexer_noop, FILE_MAX_LIBEXTRA, FILE_SELECT_MAX_RECURSIONS, FILE_SORT_ASSET_CATALOG, FILE_TYPE_BLENDERLIB, filelist_setdir(), filelist_setfilter_options(), filelist_setindexer(), filelist_setlibrary(), filelist_setrecursion(), filelist_setsorting(), FILTER_ID_ALL, STRNCPY(), U, and USER_DEVELOPER_TOOL_TEST.
| int blender::ed::asset::list::AssetList::size | ( | ) | const |
Definition at line 267 of file asset_list.cc.
References filelist_files_ensure().
| void blender::ed::asset::list::AssetList::tag_main_data_dirty | ( | ) | const |
Definition at line 272 of file asset_list.cc.
References filelist_needs_reset_on_main_changes(), and filelist_tag_force_reset_mainfiles().
Referenced by remap_id().