diff options
Diffstat (limited to 'source/blender/editors/screen/screendump.c')
-rw-r--r-- | source/blender/editors/screen/screendump.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/screen/screendump.c b/source/blender/editors/screen/screendump.c index 38a9d8ba7ab..569d6c2793c 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); } @@ -195,7 +196,7 @@ static bool screenshot_draw_check_prop(PointerRNA *UNUSED(ptr), { const char *prop_id = RNA_property_identifier(prop); - return !(STREQ(prop_id, "filepath")); + return !STREQ(prop_id, "filepath"); } static void screenshot_draw(bContext *UNUSED(C), wmOperator *op) |