diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-09-14 22:46:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-09-14 22:57:37 +0300 |
commit | 2aa2bec43a7f1fa214833c73d033ae1785c600f3 (patch) | |
tree | 743e82da02a3758ee79f5cbaf0b2bca6ef5fe294 /source/blender/blenkernel/intern | |
parent | 909da553e347679bf69c7fb0b3ed7570451cf050 (diff) |
Fix T52442: bl_app_templates_system not working
Portable builds LOCAL files need to be
treated as system instead of using as a fallback to USER templates.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/appdir.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/appdir.c b/source/blender/blenkernel/intern/appdir.c index d059310a0f8..6dd852c7875 100644 --- a/source/blender/blenkernel/intern/appdir.c +++ b/source/blender/blenkernel/intern/appdir.c @@ -691,13 +691,16 @@ bool BKE_appdir_program_python_search( return is_found; } +/** Keep in sync with `bpy.utils.app_template_paths()` */ static const char *app_template_directory_search[2] = { "startup" SEP_STR "bl_app_templates_user", "startup" SEP_STR "bl_app_templates_system", }; static const int app_template_directory_id[2] = { + /* Only 'USER' */ BLENDER_USER_SCRIPTS, + /* Covers 'LOCAL' & 'SYSTEM'. */ BLENDER_SYSTEM_SCRIPTS, }; |