Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/bpath.c
| Show First 20 Lines • Show All 230 Lines • ▼ Show 20 Lines | static bool check_missing_files_foreach_path_cb(BPathForeachPathData *bpath_data, | ||||
| return false; | return false; | ||||
| } | } | ||||
| void BKE_bpath_missing_files_check(Main *bmain, ReportList *reports) | void BKE_bpath_missing_files_check(Main *bmain, ReportList *reports) | ||||
| { | { | ||||
| BKE_bpath_foreach_path_main(&(BPathForeachPathData){ | BKE_bpath_foreach_path_main(&(BPathForeachPathData){ | ||||
| .bmain = bmain, | .bmain = bmain, | ||||
| .callback_function = check_missing_files_foreach_path_cb, | .callback_function = check_missing_files_foreach_path_cb, | ||||
| .flag = BKE_BPATH_FOREACH_PATH_ABSOLUTE | BKE_BPATH_FOREACH_PATH_SKIP_PACKED, | .flag = BKE_BPATH_FOREACH_PATH_ABSOLUTE | BKE_BPATH_FOREACH_PATH_SKIP_PACKED | | ||||
| BKE_BPATH_FOREACH_PATH_RESOLVE_TOKEN, | |||||
| .user_data = reports}); | .user_data = reports}); | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Find Missing Files | /** \name Find Missing Files | ||||
| * \{ */ | * \{ */ | ||||
| ▲ Show 20 Lines • Show All 131 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| void BKE_bpath_missing_files_find(Main *bmain, | void BKE_bpath_missing_files_find(Main *bmain, | ||||
| const char *searchpath, | const char *searchpath, | ||||
| ReportList *reports, | ReportList *reports, | ||||
| const bool find_all) | const bool find_all) | ||||
| { | { | ||||
| struct BPathFind_Data data = {NULL}; | struct BPathFind_Data data = {NULL}; | ||||
| const int flag = BKE_BPATH_FOREACH_PATH_ABSOLUTE | BKE_BPATH_FOREACH_PATH_RELOAD_EDITED; | const int flag = BKE_BPATH_FOREACH_PATH_ABSOLUTE | BKE_BPATH_FOREACH_PATH_RELOAD_EDITED | | ||||
| BKE_BPATH_FOREACH_PATH_RESOLVE_TOKEN; | |||||
| data.basedir = BKE_main_blendfile_path(bmain); | data.basedir = BKE_main_blendfile_path(bmain); | ||||
| data.reports = reports; | data.reports = reports; | ||||
| data.searchdir = searchpath; | data.searchdir = searchpath; | ||||
| data.find_all = find_all; | data.find_all = find_all; | ||||
| BKE_bpath_foreach_path_main( | BKE_bpath_foreach_path_main( | ||||
| &(BPathForeachPathData){.bmain = bmain, | &(BPathForeachPathData){.bmain = bmain, | ||||
| ▲ Show 20 Lines • Show All 269 Lines • Show Last 20 Lines | |||||