[Bf-blender-cvs] [85eadbf] multiview: Depth (Z) support for single layer multiview openexr

Dalai Felinto noreply at git.blender.org
Wed Sep 17 14:12:25 CEST 2014


Commit: 85eadbf7767f03929d1f5047b9baf535e6bfe098
Author: Dalai Felinto
Date:   Mon Sep 15 00:53:32 2014 +0200
Branches: multiview
https://developer.blender.org/rB85eadbf7767f03929d1f5047b9baf535e6bfe098

Depth (Z) support for single layer multiview openexr

===================================================================

M	source/blender/imbuf/intern/openexr/openexr_api.cpp

===================================================================

diff --git a/source/blender/imbuf/intern/openexr/openexr_api.cpp b/source/blender/imbuf/intern/openexr/openexr_api.cpp
index ee779e7..78f13b1 100644
--- a/source/blender/imbuf/intern/openexr/openexr_api.cpp
+++ b/source/blender/imbuf/intern/openexr/openexr_api.cpp
@@ -1345,11 +1345,7 @@ void IMB_exr_singlelayer_multiview_convert(void *handle, void *base,
 				for (zpass = (ExrPass *)lay->passes.first; zpass; zpass = zpass->next) {
 					if (STREQ(zpass->chan_id, "Z") && STREQ(zpass->view, pass->view)) {
 						addzbuffloatImBuf(ibuf);
-
-						IMB_buffer_float_from_float(
-						        ibuf->zbuf_float, zpass->rect, zpass->totchan,
-						        IB_PROFILE_LINEAR_RGB, IB_PROFILE_LINEAR_RGB, false,
-						        ibuf->x, ibuf->y, ibuf->x, ibuf->x);
+						memcpy(ibuf->zbuf_float, zpass->rect, sizeof(float) * ibuf->x * ibuf->y);
 						zpass->rect = NULL;
 					}
 				}




More information about the Bf-blender-cvs mailing list