Merged changes in the trunk up to revision 42116.
[blender.git] / source / blender / editors / space_image / image_ops.c
index bff2d82e04152c464fbf0fedf77468be3ef4935d..0efc89e802a11d7967eb51a59aad921ea5841009 100644 (file)
@@ -1075,7 +1075,7 @@ static void save_image_doit(bContext *C, SpaceImage *sima, wmOperator *op, SaveI
                        BKE_image_release_renderresult(scene, ima);
                }
                else {
-                       if (BKE_write_ibuf(ibuf, simopts->filepath, &simopts->im_format)) {
+                       if (BKE_write_ibuf_as(ibuf, simopts->filepath, &simopts->im_format, save_copy)) {
                                ok= TRUE;
                        }
                }