diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-12-31 15:03:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-12-31 15:03:26 +0300 |
commit | 5e4d32a9ffa7157a40bbd4d1d821c6dad860af0d (patch) | |
tree | 66caad4b06353342a3933b0287255b1d95d3b7dd /source/blender/blenlib/BLI_blenlib.h | |
parent | d00d1f1c89f217e485e18020ff0bac087ffcd77f (diff) |
Improvements to File->External Data->Make Paths Relative & Make Paths Absolute,
made when testing peach blend files wont have path issues when sent to the renderfarm.
* log failed path conversions
* clean the path so //foo/../foo/ is removed (not sure why but some peach files had this problem)
Also added a function to util.c
BLI_cleanup_file, same as BLI_cleanup_dir but dosnt add a slash at the end.
Diffstat (limited to 'source/blender/blenlib/BLI_blenlib.h')
-rw-r--r-- | source/blender/blenlib/BLI_blenlib.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_blenlib.h b/source/blender/blenlib/BLI_blenlib.h index bcb51fa1393..eb13ddc318c 100644 --- a/source/blender/blenlib/BLI_blenlib.h +++ b/source/blender/blenlib/BLI_blenlib.h @@ -135,7 +135,8 @@ void BLI_dlist_reinit(struct DynamicList *dlist); * converts it to a regular full path. * Also removes garbage from directory paths, like /../ or double slashes etc */ -void BLI_cleanup_dir(const char *relabase, char *dir); +void BLI_cleanup_file(const char *relabase, char *dir); +void BLI_cleanup_dir(const char *relabase, char *dir); /* same as above but adds a trailing slash */ /** * Blender's path code replacement function. |