diff options
author | Rob Haarsma <phaseIV@zonnet.nl> | 2003-12-08 16:08:24 +0300 |
---|---|---|
committer | Rob Haarsma <phaseIV@zonnet.nl> | 2003-12-08 16:08:24 +0300 |
commit | b4192ad94bad0aed066a933e0a1a9568d9c677f8 (patch) | |
tree | acb23cadbdc03f46bb8b8a675d84c2567d58d4ae /source/blender/src/usiblender.c | |
parent | d57df6373ea750e58ef08a67c707ee07d3d65fd4 (diff) |
Prints current blend filename in windowheader.
Diffstat (limited to 'source/blender/src/usiblender.c')
-rw-r--r-- | source/blender/src/usiblender.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/src/usiblender.c b/source/blender/src/usiblender.c index bf941b6e715..80997e24887 100644 --- a/source/blender/src/usiblender.c +++ b/source/blender/src/usiblender.c @@ -135,6 +135,8 @@ void BIF_read_file(char *name) BKE_read_file(name, NULL); } + mainwindow_set_filename_to_title(G.main->name); + sound_initialize_sounds(); winqueue_break= 1; /* leave queues everywhere */ @@ -392,7 +394,9 @@ void BIF_write_file(char *target) if (BLO_write_file(di, G.fileflags, &err)) { strcpy(G.sce, di); - strcpy(G.main->name, di); /* is guarenteed current file */ + strcpy(G.main->name, di); /* is guaranteed current file */ + + mainwindow_set_filename_to_title(G.main->name); G.save_over = 1; |