Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-02-13 15:41:58 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-02-13 15:41:58 +0300
commite92b5292c81cc4ef769b208db6831bee3ff7f9e5 (patch)
tree86ed6f2ae4710fb157ff61bf3656fb664afdabf7 /source/blender/blenkernel
parent9250f15f7467fcb3cd7ee8459740df26d94eeff9 (diff)
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.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/blender.c3
1 files changed, 3 insertions, 0 deletions
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;