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:
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r--source/blender/editors/space_image/image_ops.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c
index 96b45732433..ecbe4957c1b 100644
--- a/source/blender/editors/space_image/image_ops.c
+++ b/source/blender/editors/space_image/image_ops.c
@@ -1218,14 +1218,17 @@ static int save_image_options_init(SaveImageOptions *simopts, SpaceImage *sima,
simopts->im_format = scene->r.im_format;
is_depth_set = TRUE;
}
- else if (ima->source == IMA_SRC_GENERATED) {
- simopts->im_format.imtype = R_IMF_IMTYPE_PNG;
- }
else {
- BKE_imbuf_to_image_format(&simopts->im_format, ibuf);
+ if (ima->source == IMA_SRC_GENERATED) {
+ simopts->im_format.imtype = R_IMF_IMTYPE_PNG;
+ }
+ else {
+ BKE_imbuf_to_image_format(&simopts->im_format, ibuf);
+ simopts->im_format.quality = ibuf->ftype & 0xff;
+ }
+ simopts->im_format.quality = ibuf->ftype & 0xff;
}
//simopts->subimtype = scene->r.subimtype; /* XXX - this is lame, we need to make these available too! */
- simopts->im_format.quality = ibuf->ftype & 0xff;
BLI_strncpy(simopts->filepath, ibuf->name, sizeof(simopts->filepath));