Chaned the OsgCameraGroup so that its scene handler list used ref_ptr<> for

robustly managing memory.
This commit is contained in:
Robert Osfield
2003-03-18 20:27:09 +00:00
parent b04edb70aa
commit 8ed643ca24
8 changed files with 14 additions and 146 deletions

View File

@@ -127,7 +127,10 @@ void OsgCameraGroup::setUpSceneViewsWithData()
else if (_scene_data.valid())
{
(*p)->setSceneData( _scene_data.get() );
}
else
{
(*p)->setSceneData( 0 );
}
(*p)->setFrameStamp( _frameStamp.get() );
@@ -135,7 +138,7 @@ void OsgCameraGroup::setUpSceneViewsWithData()
(*p)->setBackgroundColor( _background_color );
(*p)->setLODScale( _LODScale );
(*p)->setFusionDistance( _fusionDistanceMode, _fusionDistanceValue );
(*p)->getState()->reset();
}
}