Correction to recent PNG commit
Need to set default depth to 8bit.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user