Skip to content

Commit

Permalink
OpenEXR metadata fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
boberfly committed Jan 8, 2020
1 parent addd543 commit ee612f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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. "
)

Expand Down
6 changes: 3 additions & 3 deletions src/GafferCycles/IECoreCyclesPreview/Renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,11 +526,11 @@ class CyclesOutput : public IECore::RefCounted
return;
}

writer->parameters()->parameter<IECore::FileNameParameter>( "fileName" )->setTypedValue( m_name );
IECore::CompoundParameterPtr exrSettings = writer->parameters()->parameter<IECore::CompoundParameter>( "formatSettings" )->parameter<IECore::CompoundParameter>( "openexr" );
if( m_quantize == ccl::TypeDesc::UINT16 )
writer->parameters()->parameter<IECore::StringParameter>( "dataType" )->setTypedValue( "half" );
exrSettings->parameter<IECore::StringParameter>( "dataType" )->setTypedValue( "half" );
else if( m_quantize == ccl::TypeDesc::FLOAT )
writer->parameters()->parameter<IECore::StringParameter>( "dataType" )->setTypedValue( "float" );
exrSettings->parameter<IECore::StringParameter>( "dataType" )->setTypedValue( "float" );

// TODO: Figure out how to apply the correct metadata for Cryptomatte EXRs to work.

Expand Down

0 comments on commit ee612f9

Please sign in to comment.