diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-11 14:59:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-11 14:59:14 +0300 |
commit | d5f5e0cd75ca61fdd9106c21f02b883f7d402b44 (patch) | |
tree | f64872959f01218a02fb9f6b9cccf2aab4c08462 /source/blender/blenloader | |
parent | 4a011a99cb9f45e0d76b134d72c2c2ab150ba006 (diff) |
report errors with library linking errors.
uses a hack to set the window for the popup for the menu, which is nasty but artists need to know when their files should not be resaved :(
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 7b30ba603ac..5711db97d93 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -11947,10 +11947,12 @@ static void read_libraries(FileData *basefd, ListBase *mainlist) FileData *fd= mainptr->curlib->filedata; if(fd==NULL) { - ReportList reports; + /* printf and reports for now... its important users know this */ printf("read library: lib %s\n", mainptr->curlib->name); - fd= blo_openblenderfile(mainptr->curlib->filename, &reports); + BKE_reportf(basefd->reports, RPT_INFO, "read library: lib %s\n", mainptr->curlib->name); + + fd= blo_openblenderfile(mainptr->curlib->filename, basefd->reports); if (fd) { fd->reports= basefd->reports; @@ -11968,8 +11970,10 @@ static void read_libraries(FileData *basefd, ListBase *mainlist) } else mainptr->curlib->filedata= NULL; - if (fd==NULL) + if (fd==NULL) { printf("ERROR: can't find lib %s \n", mainptr->curlib->filename); + BKE_reportf(basefd->reports, RPT_ERROR, "Can't find lib %s (CAREFUL, DON'T RE-SAVE\n", mainptr->curlib->filename); + } } if(fd) { doit= 1; |