Cleanup: ignore open-blend as startup/prefs basis
No reason startup/prefs would ever be blend-file relative.
This commit is contained in:
parent
dc5007648c
commit
387ba87ad3
@ -675,15 +675,15 @@ int wm_homefile_read(
|
|||||||
BLI_strncpy(filepath_startup, filepath_startup_override, FILE_MAX);
|
BLI_strncpy(filepath_startup, filepath_startup_override, FILE_MAX);
|
||||||
|
|
||||||
if (cfgdir) {
|
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 {
|
else {
|
||||||
filepath_userdef[0] = '\0';
|
filepath_userdef[0] = '\0';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (cfgdir) {
|
else if (cfgdir) {
|
||||||
BLI_make_file_string(G.main->name, filepath_startup, cfgdir, BLENDER_STARTUP_FILE);
|
BLI_make_file_string("/", filepath_startup, cfgdir, BLENDER_STARTUP_FILE);
|
||||||
BLI_make_file_string(G.main->name, filepath_userdef, cfgdir, BLENDER_USERPREF_FILE);
|
BLI_make_file_string("/", filepath_userdef, cfgdir, BLENDER_USERPREF_FILE);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
filepath_startup[0] = '\0';
|
filepath_startup[0] = '\0';
|
||||||
|
Loading…
Reference in New Issue
Block a user