Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/bpath.c
| Context not available. | |||||
| #include "BKE_bpath.h" /* own include */ | #include "BKE_bpath.h" /* own include */ | ||||
| #include "CLG_log.h" | |||||
| #ifndef _MSC_VER | #ifndef _MSC_VER | ||||
| # include "BLI_strict_flags.h" | # include "BLI_strict_flags.h" | ||||
| #endif | #endif | ||||
| static CLG_LogRef LOG = { "bke.bpath" }; | |||||
| static bool checkMissingFiles_visit_cb(void *userdata, char *UNUSED(path_dst), const char *path_src) | static bool checkMissingFiles_visit_cb(void *userdata, char *UNUSED(path_dst), const char *path_src) | ||||
| { | { | ||||
| ReportList *reports = (ReportList *)userdata; | ReportList *reports = (ReportList *)userdata; | ||||
| Context not available. | |||||
| const int flag = BKE_BPATH_TRAVERSE_SKIP_LIBRARY; | const int flag = BKE_BPATH_TRAVERSE_SKIP_LIBRARY; | ||||
| if (basedir[0] == '\0') { | if (basedir[0] == '\0') { | ||||
| printf("%s: basedir='', this is a bug\n", __func__); | CLOG_ERROR(&LOG, "basedir='', this is a bug"); | ||||
| return; | return; | ||||
| } | } | ||||
| Context not available. | |||||
| const int flag = BKE_BPATH_TRAVERSE_SKIP_LIBRARY; | const int flag = BKE_BPATH_TRAVERSE_SKIP_LIBRARY; | ||||
| if (basedir[0] == '\0') { | if (basedir[0] == '\0') { | ||||
| printf("%s: basedir='', this is a bug\n", __func__); | CLOG_ERROR(&LOG, "basedir='', this is a bug"); | ||||
| return; | return; | ||||
| } | } | ||||
| Context not available. | |||||
| const char *base_old = ((char **)pathbase_v)[1]; | const char *base_old = ((char **)pathbase_v)[1]; | ||||
| if (BLI_path_is_rel(base_old)) { | if (BLI_path_is_rel(base_old)) { | ||||
| printf("%s: error, old base path '%s' is not absolute.\n", | CLOG_ERROR(&LOG, "old base path '%s' is not absolute.", base_old); | ||||
| __func__, base_old); | |||||
| return false; | return false; | ||||
| } | } | ||||
| Context not available. | |||||