Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/asset/intern/asset_list.cc
| Show All 40 Lines | |||||
| #include "WM_api.h" | #include "WM_api.h" | ||||
| #include "WM_types.h" | #include "WM_types.h" | ||||
| /* XXX uses private header of file-space. */ | /* XXX uses private header of file-space. */ | ||||
| #include "../space_file/filelist.h" | #include "../space_file/filelist.h" | ||||
| #include "ED_asset_handle.h" | #include "ED_asset_handle.h" | ||||
| #include "ED_asset_indexer.h" | |||||
| #include "ED_asset_list.h" | #include "ED_asset_list.h" | ||||
| #include "ED_asset_list.hh" | #include "ED_asset_list.hh" | ||||
| #include "asset_library_reference.hh" | #include "asset_library_reference.hh" | ||||
| namespace blender::ed::asset { | namespace blender::ed::asset { | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Asset list API | /** \name Asset list API | ||||
| ▲ Show 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | filelist_setfilter_options( | ||||
| false, | false, | ||||
| true, | true, | ||||
| true, /* Just always hide parent, prefer to not add an extra user option for this. */ | true, /* Just always hide parent, prefer to not add an extra user option for this. */ | ||||
| FILE_TYPE_BLENDERLIB, | FILE_TYPE_BLENDERLIB, | ||||
| FILTER_ID_ALL, | FILTER_ID_ALL, | ||||
| true, | true, | ||||
| "", | "", | ||||
| ""); | ""); | ||||
| filelist_setindexer(files, &file_indexer_asset); | |||||
| char path[FILE_MAXDIR] = ""; | char path[FILE_MAXDIR] = ""; | ||||
| if (user_library) { | if (user_library) { | ||||
| BLI_strncpy(path, user_library->path, sizeof(path)); | BLI_strncpy(path, user_library->path, sizeof(path)); | ||||
| filelist_setdir(files, path); | filelist_setdir(files, path); | ||||
| } | } | ||||
| else { | else { | ||||
| filelist_setdir(files, path); | filelist_setdir(files, path); | ||||
| ▲ Show 20 Lines • Show All 406 Lines • Show Last 20 Lines | |||||