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:
Diffstat (limited to 'source/blender/src/toets.c')
-rw-r--r--source/blender/src/toets.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/toets.c b/source/blender/src/toets.c
index 62f31f7f585..8eba2c0acd8 100644
--- a/source/blender/src/toets.c
+++ b/source/blender/src/toets.c
@@ -217,8 +217,8 @@ void schrijfplaatje(char *name)
ibuf->ftype |= (R.r.quality & OPENEXR_COMPRESS);
- if(R.rectz && (R.r.subimtype & R_OPENEXR_ZBUF))
- ibuf->zbuf = (int *)R.rectz;
+ if(R.rectzf && (R.r.subimtype & R_OPENEXR_ZBUF))
+ ibuf->zbuf_float = R.rectzf;
}
#endif
else if((R.r.imtype==R_TARGA) || (R.r.imtype==R_PNG)) {
@@ -241,7 +241,7 @@ void schrijfplaatje(char *name)
RE_make_existing_file(name);
- if(IMB_saveiff(ibuf, name, IB_rect | IB_zbuf)==0) {
+ if(IMB_saveiff(ibuf, name, IB_rect | IB_zbuf | IB_zbuffloat)==0) {
perror(name);
G.afbreek= 1;
}