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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-12-31 18:02:33 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-12-31 18:02:33 +0400
commit334ca1d344123f4d8f54c16cf93dab9f2fdae88f (patch)
tree97d5101af4377685fcc36ac7ada2466a897f70eb /source/blender/blenkernel/intern/image.c
parent93f78ac1e1313544c633dd88d2ad05565f37ae82 (diff)
Correction to recent PNG commit
Need to set default depth to 8bit.
Diffstat (limited to 'source/blender/blenkernel/intern/image.c')
-rw-r--r--source/blender/blenkernel/intern/image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c
index b93f917c9e2..dbc423f98b3 100644
--- a/source/blender/blenkernel/intern/image.c
+++ b/source/blender/blenkernel/intern/image.c
@@ -1309,6 +1309,7 @@ void BKE_imformat_defaults(ImageFormatData *im_format)
memset(im_format, 0, sizeof(*im_format));
im_format->planes = R_IMF_PLANES_RGB;
im_format->imtype = R_IMF_IMTYPE_PNG;
+ im_format->depth = R_IMF_CHAN_DEPTH_8;
im_format->quality = 90;
im_format->compress = 90;