Refinements to SwitchLayer and WhiteListTileLoadedCallback

This commit is contained in:
Robert Osfield
2008-09-11 14:28:42 +00:00
parent 2be243deda
commit e1930d127e
3 changed files with 6 additions and 5 deletions

View File

@@ -643,6 +643,6 @@ SwitchLayer::SwitchLayer():
SwitchLayer::SwitchLayer(const SwitchLayer& switchLayer,const osg::CopyOp& copyop):
CompositeLayer(switchLayer,copyop),
_activeLayer(-1)
_activeLayer(switchLayer._activeLayer)
{
}

View File

@@ -220,6 +220,7 @@ osg::BoundingSphere TerrainTile::computeBound() const
return bs;
}
/////////////////////////////////////////////////////////////////////////////////
//
// WhiteListTileLoadedCallback
@@ -227,7 +228,7 @@ osg::BoundingSphere TerrainTile::computeBound() const
WhiteListTileLoadedCallback::WhiteListTileLoadedCallback()
{
_minumumNumberOfLayers = 0;
_replaceSwitchLayer = true;
_replaceSwitchLayer = false;
_allowAll = false;
}