@@ -79,7 +79,6 @@ PRM_Default ROP_SceneCacheWriter::fileDefault( 0, "$HIP/output.scc" );
7979PRM_Default ROP_SceneCacheWriter::rootObjectDefault ( 0 , " /obj" );
8080PRM_SpareData ROP_SceneCacheWriter::forceObjectsSpareData;
8181
82- const SceneInterface::Name &ROP_SceneCacheWriter::visibleAttribute ( " scene:visible" );
8382const SceneInterface::Name &ROP_SceneCacheWriter::changingHierarchyAttribute ( " sceneInterface:changingHierarchy" );
8483
8584OP_TemplatePair *ROP_SceneCacheWriter::buildParameters ()
@@ -389,13 +388,13 @@ ROP_RENDER_CODE ROP_SceneCacheWriter::doWrite( const SceneInterface *liveScene,
389388 if ( time != m_startTime )
390389 {
391390 outChild->writeAttribute ( changingHierarchyAttribute, new BoolData ( true ), time );
392- outChild->writeAttribute ( visibleAttribute , new BoolData ( false ), time - 1e-6 );
391+ outChild->writeAttribute ( IECore::SceneInterface::visibilityName , new BoolData ( false ), time - 1e-6 );
393392 }
394393 }
395394
396395 if ( outChild->hasAttribute ( changingHierarchyAttribute ) )
397396 {
398- outChild->writeAttribute ( visibleAttribute , new BoolData ( true ), time );
397+ outChild->writeAttribute ( IECore::SceneInterface::visibilityName , new BoolData ( true ), time );
399398 }
400399
401400 ROP_RENDER_CODE status = doWrite ( liveChild, outChild, time, progress );
@@ -405,21 +404,21 @@ ROP_RENDER_CODE ROP_SceneCacheWriter::doWrite( const SceneInterface *liveScene,
405404 }
406405 }
407406
408- // turn visibleAttribute off if the child disappears
407+ // turn visibility off if the child disappears
409408 SceneInterface::NameList outChildren;
410409 outScene->childNames ( outChildren );
411410 for ( SceneInterface::NameList::iterator it = outChildren.begin (); it != outChildren.end (); ++it )
412411 {
413412 if ( !liveScene->hasChild ( *it ) )
414413 {
415414 SceneInterfacePtr outChild = outScene->child ( *it );
416- if ( !outChild->hasAttribute ( visibleAttribute ) )
415+ if ( !outChild->hasAttribute ( IECore::SceneInterface::visibilityName ) )
417416 {
418- outChild->writeAttribute ( visibleAttribute , new BoolData ( true ), time - 1e-6 );
417+ outChild->writeAttribute ( IECore::SceneInterface::visibilityName , new BoolData ( true ), time - 1e-6 );
419418 }
420419
421420 outChild->writeAttribute ( changingHierarchyAttribute, new BoolData ( true ), time );
422- outChild->writeAttribute ( visibleAttribute , new BoolData ( false ), time );
421+ outChild->writeAttribute ( IECore::SceneInterface::visibilityName , new BoolData ( false ), time );
423422 }
424423 }
425424
0 commit comments