From e92b5292c81cc4ef769b208db6831bee3ff7f9e5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 13 Feb 2010 12:41:58 +0000 Subject: [PATCH] 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. --- source/blender/blenkernel/intern/blender.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/blender/blenkernel/intern/blender.c b/source/blender/blenkernel/intern/blender.c index 52bb0ac8c6f..1c8b48a7de6 100644 --- a/source/blender/blenkernel/intern/blender.c +++ b/source/blender/blenkernel/intern/blender.c @@ -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; -- 2.28.0