From 5adff5c15e947308881be5470e62a654f5ae17cc Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 20 Nov 2004 12:08:33 +0000 Subject: [PATCH] Added support for pixel based LOD's and set the default priority scale to 1.0 --- src/osg/PagedLOD.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/osg/PagedLOD.cpp b/src/osg/PagedLOD.cpp index fab521d37..816bd0fbd 100644 --- a/src/osg/PagedLOD.cpp +++ b/src/osg/PagedLOD.cpp @@ -13,12 +13,13 @@ #include #include +#include using namespace osg; PagedLOD::PerRangeData::PerRangeData(): _priorityOffset(0.0f), - _priorityScale(0.0f), + _priorityScale(1.0f), _timeStamp(0.0f) {} PagedLOD::PerRangeData::PerRangeData(const PerRangeData& prd): @@ -175,7 +176,7 @@ void PagedLOD::traverse(NodeVisitor& nv) // modify the priority according to the child's priority offset and scale. priority = _perRangeDataList[numChildren]._priorityOffset + priority * _perRangeDataList[numChildren]._priorityScale; - + if (_databasePath.empty()) { nv.getDatabaseRequestHandler()->requestNodeFile(_perRangeDataList[numChildren]._filename,this,priority,nv.getFrameStamp());