print blend file loading, because...

- Often need to open a file that just crashed/hung in valgrind or gdb
- Sometimes need to commit a blend that was just opened and blender has no fast way to get the blend file in the clipboard.

since libraries also print in the console, dont see any problems with adding this.
This commit is contained in:
Campbell Barton
2010-02-13 12:41:58 +00:00
parent 9250f15f74
commit e92b5292c8

View File

@@ -372,6 +372,9 @@ int BKE_read_file(bContext *C, char *dir, void *unused, ReportList *reports)
BlendFileData *bfd;
int retval= 1;
if(strstr(dir, ".B25.blend")==0) /* dont print user-pref loading */
printf("read blend: %s\n", dir);
bfd= BLO_read_from_file(dir, reports);
if (bfd) {
if(bfd->user) retval= 2;