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/screen/screendump.c')
-rw-r--r--source/blender/editors/screen/screendump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/screen/screendump.c b/source/blender/editors/screen/screendump.c
index 38a9d8ba7ab..d46397180c5 100644
--- a/source/blender/editors/screen/screendump.c
+++ b/source/blender/editors/screen/screendump.c
@@ -124,7 +124,8 @@ static int screenshot_exec(bContext *C, wmOperator *op)
scd->dumprect = ibuf->rect;
}
- if (scd->im_format.planes == R_IMF_PLANES_BW) {
+ if ((scd->im_format.planes == R_IMF_PLANES_BW) &&
+ (scd->im_format.imtype != R_IMF_IMTYPE_MULTILAYER)) {
/* bw screenshot? - users will notice if it fails! */
IMB_color_to_bw(ibuf);
}