Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-03-06 16:13:03 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-03-06 16:19:01 +0300
commitb839a5d0765bd449fb4f3a58ed683ec0233a8acf (patch)
tree786410ae468b9ecb2f8c3c37dc4b39f0167d7f5d /source/blender/blenkernel/intern/bpath.c
parent0b16b63d87e8a217cd73ec3220b4cb9af69ac355 (diff)
Cleanup: remove BLI_cleanup_file
In practice, references to files rarely have trailing slashes (by accident). Remove this function in favor of BLI_cleanup_path.
Diffstat (limited to 'source/blender/blenkernel/intern/bpath.c')
-rw-r--r--source/blender/blenkernel/intern/bpath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/bpath.c b/source/blender/blenkernel/intern/bpath.c
index 26e8bbde009..38f0e516beb 100644
--- a/source/blender/blenkernel/intern/bpath.c
+++ b/source/blender/blenkernel/intern/bpath.c
@@ -807,13 +807,13 @@ bool BKE_bpath_relocate_visitor(void *pathbase_v, char *path_dst, const char *pa
}
/* Make referenced file absolute. This would be a side-effect of
- * BLI_cleanup_file, but we do it explicitly so we know if it changed. */
+ * BLI_cleanup_path, but we do it explicitly so we know if it changed. */
BLI_strncpy(filepath, path_src, FILE_MAX);
if (BLI_path_abs(filepath, base_old)) {
/* Path was relative and is now absolute. Remap.
* Important BLI_cleanup_dir runs before the path is made relative
* because it wont work for paths that start with "//../" */
- BLI_cleanup_file(base_new, filepath);
+ BLI_cleanup_path(base_new, filepath);
BLI_path_rel(filepath, base_new);
BLI_strncpy(path_dst, filepath, FILE_MAX);
return true;