From ee612f91b5e5720b8d688e8796f402cef05c3fdb Mon Sep 17 00:00:00 2001 From: Alex Fuller Date: Wed, 8 Jan 2020 02:06:40 -0800 Subject: [PATCH] OpenEXR metadata fix. --- build.py | 2 +- src/GafferCycles/IECoreCyclesPreview/Renderer.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.py b/build.py index 6cf2691..5ba926d 100755 --- a/build.py +++ b/build.py @@ -60,7 +60,7 @@ parser.add_argument( "--gafferVersion", - default = "0.55.1.0", + default = "0.55.2.0", help = "The version of Gaffer to build against. " ) diff --git a/src/GafferCycles/IECoreCyclesPreview/Renderer.cpp b/src/GafferCycles/IECoreCyclesPreview/Renderer.cpp index d71d84a..38aeb50 100644 --- a/src/GafferCycles/IECoreCyclesPreview/Renderer.cpp +++ b/src/GafferCycles/IECoreCyclesPreview/Renderer.cpp @@ -526,11 +526,11 @@ class CyclesOutput : public IECore::RefCounted return; } - writer->parameters()->parameter( "fileName" )->setTypedValue( m_name ); + IECore::CompoundParameterPtr exrSettings = writer->parameters()->parameter( "formatSettings" )->parameter( "openexr" ); if( m_quantize == ccl::TypeDesc::UINT16 ) - writer->parameters()->parameter( "dataType" )->setTypedValue( "half" ); + exrSettings->parameter( "dataType" )->setTypedValue( "half" ); else if( m_quantize == ccl::TypeDesc::FLOAT ) - writer->parameters()->parameter( "dataType" )->setTypedValue( "float" ); + exrSettings->parameter( "dataType" )->setTypedValue( "float" ); // TODO: Figure out how to apply the correct metadata for Cryptomatte EXRs to work.