diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-12-31 18:02:33 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-12-31 18:02:33 +0400 |
commit | 334ca1d344123f4d8f54c16cf93dab9f2fdae88f (patch) | |
tree | 97d5101af4377685fcc36ac7ada2466a897f70eb /source/blender | |
parent | 93f78ac1e1313544c633dd88d2ad05565f37ae82 (diff) |
Correction to recent PNG commit
Need to set default depth to 8bit.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/image.c | 1 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/scene.c | 1 |
2 files changed, 2 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; diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c index baf2e7e47e3..bccbdc44584 100644 --- a/source/blender/blenkernel/intern/scene.c +++ b/source/blender/blenkernel/intern/scene.c @@ -400,6 +400,7 @@ static Scene *scene_add(Main *bmain, const char *name) sce->r.im_format.planes = R_IMF_PLANES_RGB; sce->r.im_format.imtype = R_IMF_IMTYPE_PNG; + sce->r.im_format.depth = R_IMF_CHAN_DEPTH_8; sce->r.im_format.quality = 90; sce->r.im_format.compress = 90; |