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>2008-10-06 12:02:35 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-10-06 12:02:35 +0400
commitc9634ce5b40cc4344b189b607949d54183a7a398 (patch)
treed55102316578a929f742b430d18236361098f399 /source/blender/blenlib
parent6c2738ef48bdc7d535d858293a635a29b7269cf3 (diff)
fix for [#17560] Error in BPY_run_python_script
any path starting with a '.' on win32 would be replaced with C:\ (or the default root) this was added rev 6568 so the file selector would replace "." with C:\. should be moved to fileselector but for now compare with "." rather then checking the first char. header_view3d.c - prop edit and render were aligning in curve edit mode.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/util.c b/source/blender/blenlib/intern/util.c
index 9aba38b9bc2..013b9e0bb1b 100644
--- a/source/blender/blenlib/intern/util.c
+++ b/source/blender/blenlib/intern/util.c
@@ -893,7 +893,10 @@ void BLI_cleanup_file(const char *relabase, char *dir)
*/
#ifdef WIN32
- if(dir[0]=='.') { /* happens for example in FILE_MAIN */
+
+ /* Note, this should really be moved to the file selector,
+ * since this function is used in many areas */
+ if(strcmp(dir, ".")==0) { /* happens for example in FILE_MAIN */
get_default_root(dir);
return;
}