diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-02-22 02:19:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-02-22 02:19:06 +0300 |
commit | ae464adffd51473fad06bdf19395c31829b34d7a (patch) | |
tree | 098ccc8c2e4c36cf87eb8f5280ef596e702905bb /source/blender/blenkernel/intern/image.c | |
parent | 71ca81019de3a6a34fcf7065eea35623b7a96c10 (diff) |
Fix for [#8303] stamp gives wrong file name when using unsaved files
Also made alpha color work with OpenGL render caused by buf_rectfill_area not working on char rect's.
Diffstat (limited to 'source/blender/blenkernel/intern/image.c')
-rw-r--r-- | source/blender/blenkernel/intern/image.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c index fdd36d72b06..56744224449 100644 --- a/source/blender/blenkernel/intern/image.c +++ b/source/blender/blenkernel/intern/image.c @@ -906,8 +906,13 @@ static void stampdata(StampData *stamp_data, int do_prefix) #endif /* WIN32 */ if (G.scene->r.stamp & R_STAMP_FILENAME) { - if (do_prefix) sprintf(stamp_data->file, "File %s", G.sce); - else sprintf(stamp_data->file, "%s", G.sce); + if (G.relbase_valid) { + if (do_prefix) sprintf(stamp_data->file, "File %s", G.sce); + else sprintf(stamp_data->file, "%s", G.sce); + } else { + if (do_prefix) strcpy(stamp_data->file, "File <untitled>"); + else strcpy(stamp_data->file, "<untitled>"); + } stamp_data->note[0] = '\0'; } else { stamp_data->file[0] = '\0'; |