File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -347,6 +347,7 @@ void LiveScene::path( Path &p ) const
347347Imath::Box3d LiveScene::readBound ( double time ) const
348348{
349349 Imath::Box3d bound;
350+ bound.makeEmpty ();
350351 IECoreScene::SceneInterface::Path rootPath, currentPath;
351352 for ( unsigned i=0 ; i < objects ( &time ); ++i )
352353 {
Original file line number Diff line number Diff line change @@ -50,6 +50,17 @@ def testNameAndLabel( self ) :
5050 self .assertEqual ( k .name (), "scene" )
5151 self .assertEqual ( k .label (), "Scene" )
5252
53+ def testEmptyScene ( self ) :
54+ import imath
55+
56+ n = nuke .createNode ( "ieLiveScene" )
57+ liveScene = n .knob ( "scene" ).getValue ()
58+
59+ self .assertEqual ( liveScene .childNames (), [] )
60+ self .assertEqual ( liveScene .readTransform ( 0 ).value .transform , imath .M44d () )
61+ self .assertEqual ( liveScene .readBound ( 0 ), imath .Box3d () )
62+ self .assertTrue ( isinstance ( liveScene .readObject ( 0 ), IECore .NullObject ) )
63+
5364 def testAccessors ( self ) :
5465
5566 n = nuke .createNode ( "ieLiveScene" )
You can’t perform that action at this time.
0 commit comments