diff options
author | Ton Roosendaal <ton@blender.org> | 2006-07-03 15:21:38 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-07-03 15:21:38 +0400 |
commit | 780b8d83c5587caa6c6d73da4411e55cf69757d0 (patch) | |
tree | 641d9a62d7060547d79fdf653edc8747567bc637 /source/blender/src/header_image.c | |
parent | 10d6a50ae0ee3b9ee1fb727d1980b6fb151baec1 (diff) |
Bugfix #4578
Images saved with "Save..." menu in Image Window ignored the RGB or RGBA
setting in Scene Output panel.
Also:
- changed menu in "Save As..." to indicate it can change type/name
- added proper info about image in properties panel (RGB, A, Z)
Diffstat (limited to 'source/blender/src/header_image.c')
-rw-r--r-- | source/blender/src/header_image.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/src/header_image.c b/source/blender/src/header_image.c index c28875f7525..4d87f3c9c56 100644 --- a/source/blender/src/header_image.c +++ b/source/blender/src/header_image.c @@ -189,6 +189,13 @@ static void save_paint(char *name) BKE_add_image_extension(str, G.scene->r.imtype); if (saveover(str)) { + + /* enforce user setting for RGB or RGBA, but skip BW */ + if(G.scene->r.planes==32) + ima->ibuf->depth= 32; + else if(G.scene->r.planes==24) + ima->ibuf->depth= 24; + waitcursor(1); if (BKE_write_ibuf(ima->ibuf, str, G.scene->r.imtype, G.scene->r.subimtype, G.scene->r.quality)) { BLI_strncpy(ima->name, name, sizeof(ima->name)); @@ -812,7 +819,7 @@ static uiBlock *image_imagemenu(void *arg_unused) uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Open...", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 0, ""); if (G.sima->image) { - uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Save...", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 5, ""); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Save As...", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 5, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Replace...", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 1, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Reload", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 6, ""); |