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>2017-03-22 21:20:52 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-03-22 21:24:05 +0300
commit387ba87ad3b9eba8e0d117474b133a5a58ea44c6 (patch)
tree3a8ede8ddddf0fffacaf3db6411d98f505e5af03 /source/blender/windowmanager
parentdc5007648c31a7819ade9d94fc5cd672ef56e8d7 (diff)
Cleanup: ignore open-blend as startup/prefs basis
No reason startup/prefs would ever be blend-file relative.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 60a361122c2..39c47599e30 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -675,15 +675,15 @@ int wm_homefile_read(
BLI_strncpy(filepath_startup, filepath_startup_override, FILE_MAX);
if (cfgdir) {
- BLI_make_file_string(G.main->name, filepath_userdef, cfgdir, BLENDER_USERPREF_FILE);
+ BLI_make_file_string("/", filepath_userdef, cfgdir, BLENDER_USERPREF_FILE);
}
else {
filepath_userdef[0] = '\0';
}
}
else if (cfgdir) {
- BLI_make_file_string(G.main->name, filepath_startup, cfgdir, BLENDER_STARTUP_FILE);
- BLI_make_file_string(G.main->name, filepath_userdef, cfgdir, BLENDER_USERPREF_FILE);
+ BLI_make_file_string("/", filepath_startup, cfgdir, BLENDER_STARTUP_FILE);
+ BLI_make_file_string("/", filepath_userdef, cfgdir, BLENDER_USERPREF_FILE);
}
else {
filepath_startup[0] = '\0';