diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-08-17 10:05:04 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-08-18 07:10:07 +0300 |
commit | 4c22343271966752094b1e64af45fc5a5c6109b9 (patch) | |
tree | 4672b1248784b07b3875cf7dd454e9393951a23b /source | |
parent | 506d8448cc006a0c1c51947999a50addbfedcb15 (diff) |
Warn when app-template isn't found
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index b56f95aca6f..477699fccaa 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -773,7 +773,10 @@ int wm_homefile_read( } if ((app_template != NULL) && (app_template[0] != '\0')) { - BKE_appdir_app_template_id_search(app_template, app_template_system, sizeof(app_template_system)); + if (!BKE_appdir_app_template_id_search(app_template, app_template_system, sizeof(app_template_system))) { + /* Can safely continue with code below, just warn it's not found. */ + BKE_reportf(reports, RPT_WARNING, "Application Template '%s' not found.", app_template); + } /* Insert template name into startup file. */ |