Skip to content

Commit

Permalink
InteractiveRenderTests : Account for crop edits in Cycles and 3Delight
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhaddon committed Nov 7, 2023
1 parent a5f73eb commit 0164805
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/GafferDelightTest/InteractiveDelightRenderTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ def testLightFiltersAndSetEdits( self ) :

pass

@unittest.skip( "Need to be able to close old driver _after_ opening new one" )
def testEditCropWindow( self ) :

pass

def _createConstantShader( self ) :

shader = GafferOSL.OSLShader()
Expand Down
6 changes: 6 additions & 0 deletions python/GafferSceneTest/InteractiveRenderTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2147,6 +2147,12 @@ def testEditCropWindow( self ) :
script["renderer"]["state"].setValue( script["renderer"].State.Stopped )
self.uiThreadCallHandler.assertCalled() # Wait for saving to complete

if script["renderer"].typeName() == "GafferCycles::InteractiveCyclesRender" :
# Cycles somehow manages to do stuff after we've deleted the CyclesRenderer.
# Wait for it to finish.
## \todo Figure out why this is needed, and fix it.
self.uiThreadCallHandler.waitFor( 1 )

self.assertNotIn( "gaffer:isRendering", script["catalogue"]["out"].metadata() )

def tearDown( self ) :
Expand Down

0 comments on commit 0164805

Please sign in to comment.