diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2018-12-03 22:55:36 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2018-12-05 16:53:44 +0300 |
commit | 378e5232e88eb99c40025c681c9b28724a370c0f (patch) | |
tree | d4b47874429cfa15271617b17036ba0679f6e2ff /source/blender/blenkernel/intern/appdir.c | |
parent | fb3f1a35676e830358ec68ae8153e076253930b4 (diff) |
Fix T58104: Duplicated previews for Matcaps/HDRIs in portable installs
Reviewers: brecht
Maniphest Tasks: T58104
Differential Revision: https://developer.blender.org/D4028
Diffstat (limited to 'source/blender/blenkernel/intern/appdir.c')
-rw-r--r-- | source/blender/blenkernel/intern/appdir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/appdir.c b/source/blender/blenkernel/intern/appdir.c index 2848c245553..3643bf54e48 100644 --- a/source/blender/blenkernel/intern/appdir.c +++ b/source/blender/blenkernel/intern/appdir.c @@ -229,7 +229,7 @@ static bool get_path_local( * Is this an install with user files kept together with the Blender executable and its * installation files. */ -static bool is_portable_install(void) +bool BKE_appdir_app_is_portable_install(void) { /* detect portable install by the existence of config folder */ const int ver = BLENDER_VERSION; @@ -289,7 +289,7 @@ static bool get_path_user( const char *user_base_path; /* for portable install, user path is always local */ - if (is_portable_install()) { + if (BKE_appdir_app_is_portable_install()) { return get_path_local(targetpath, targetpath_len, folder_name, subfolder_name, ver); } user_path[0] = '\0'; |