Skip to content

Commit ddb8c62

Browse files
committed
Arnold Renderer : Do not supply global render: attributes
This is a temp commit to get the tests passing. I'm assuming we _do_ want global attributes passed to the renderer, so we'd either need to add support for Box2fData (after GafferHQ#4461 is merged) or to somehow indentify the "special case" `render:*` globals that should _not_ be passed through. Without this, we would get the following: ``` ====================================================================== ERROR: testRenderRegion (GafferArnoldTest.ArnoldRenderTest.ArnoldRenderTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/andrewk/apps/gaffer/0.61.0.0dev/cent7.x86_64/cortex/10.3/gaffer/py2/python/GafferTest/TestCase.py", line 126, in __messageHandlerCleanup raise RuntimeError( "Unexpected message : " + failureHandler.levelAsString( message.level ) + " : " + message.context + " : " + message.message ) RuntimeError: Unexpected message : WARNING : setParameter : Unsupported data type "Box2fData" for name "render:cropWindow" ```
1 parent 77caf51 commit ddb8c62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GafferArnold/IECoreArnoldPreview/Renderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3397,7 +3397,7 @@ class ArnoldGlobals
33973397
return;
33983398
}
33993399
}
3400-
else if( isRenderAttribute( name.c_str() ) )
3400+
else if( boost::starts_with( name.c_str(), "user:" ) )
34013401
{
34023402
AtString arnoldName( name.c_str() );
34033403
const IECore::Data *dataValue = IECore::runTimeCast<const IECore::Data>( value );

0 commit comments

Comments
 (0)