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:
authorTon Roosendaal <ton@blender.org>2006-02-18 17:35:43 +0300
committerTon Roosendaal <ton@blender.org>2006-02-18 17:35:43 +0300
commit1ea90994744cb95d83717bb7df972c693f9e9583 (patch)
treed803ddef0effd29024cfb71e8d81ee41f6b52a1d /source/blender/src/writeimage.c
parent7425a8fcaa3a777155d7b75d368db3b0ed1e58a4 (diff)
- Restored "dither" option for conversion from float -> byte images.
This now is a post-process option only (used to be in render). It is only handled within the Imbuf/ module, on conversions from float to byte rect, which atm mostly happens on saving images. - Small fix: when using Scene RenderLayer nodes, the speed vectors for these nodes were not created when that scene had "Do Composite" off.
Diffstat (limited to 'source/blender/src/writeimage.c')
-rw-r--r--source/blender/src/writeimage.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/writeimage.c b/source/blender/src/writeimage.c
index 8bafd14d0e0..ae0717f6726 100644
--- a/source/blender/src/writeimage.c
+++ b/source/blender/src/writeimage.c
@@ -136,6 +136,9 @@ static void save_rendered_image_cb_real(char *name, int zbuf)
ibuf->zbuf_float= rres.rectz;
}
+ /* float factor for random dither, imbuf takes care of it */
+ ibuf->dither= G.scene->r.dither_intensity;
+
BKE_write_ibuf(ibuf, str, G.scene->r.imtype, G.scene->r.subimtype, G.scene->r.quality);
IMB_freeImBuf(ibuf); /* imbuf knows rects are not part of ibuf */