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:
authorAndrea Weikert <elubie@gmx.net>2005-11-01 23:25:23 +0300
committerAndrea Weikert <elubie@gmx.net>2005-11-01 23:25:23 +0300
commit6eb47e98c3f884d3989de98b704efb0b5cd3dee2 (patch)
tree6d2e72870bcd808529986bf23b41f66e915a57f8 /source/blender/blenlib
parent2cf66f90c5116216dc8cbaf1207617573dc4bfcd (diff)
Fix for item #3316 : make sure that BLI_make_file_string converts all
slashes in the filenames to the system preferred direction. Leaving unix slashes caused the error in the Python module blender.Get('filename')
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/util.c b/source/blender/blenlib/intern/util.c
index e95428f5249..29d140c5835 100644
--- a/source/blender/blenlib/intern/util.c
+++ b/source/blender/blenlib/intern/util.c
@@ -727,6 +727,10 @@ void BLI_make_file_string(char *relabase, char *string, char *dir, char *file)
/* Push all slashes to the system preferred direction */
BLI_clean(string);
+ /* also for all the other dirs where we changed the slashes */
+ BLI_clean(relabase);
+ BLI_clean(dir);
+ BLI_clean(file);
}
int BLI_testextensie(char *str, char *ext)