diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-10-04 05:18:47 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-10-04 05:18:47 +0400 |
commit | 314121ee65a5d2aadb9be56afcc31201e0eda596 (patch) | |
tree | 849a29b4b041caa62abe8b9ee89301b4ed2cb38e /source/creator | |
parent | 0540512866de95d86ce1e3be7318ee735ae09b90 (diff) |
- use own string conversion function over PyUnicode_FromString when converting the argv
- report errors when files dont load when given from the command line but not running in background mode.
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/creator.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index 8e17bec361f..83392224444 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -897,7 +897,10 @@ static int load_file(int argc, char **argv, void *data) } else { /* we are not running in background mode here, but start blender in UI mode with a file - this should do everything a 'load file' does */ - WM_read_file(C, filename, NULL); + ReportList reports; + BKE_reports_init(&reports, RPT_PRINT); + WM_read_file(C, filename, &reports); + BKE_reports_clear(&reports); } G.file_loaded = 1; |