Changeset 13041 for OpenSceneGraph/trunk/src/osgPlugins/txp/TXPPagedLOD.cpp
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/txp/TXPPagedLOD.cpp
r12080 r13041 26 26 //TileMapper* tileMapper = dynamic_cast<TileMapper*>(nv.getUserData()); 27 27 //Modified by Brad Anderegg (May-27-08) because the black listing process appears to make tiles switch lods 28 //when they clearly shouldnt, in the worst cases a tile will page out that is right in front of you. 28 //when they clearly shouldnt, in the worst cases a tile will page out that is right in front of you. 29 29 bool forceUseOfFirstChild = /*tileMapper ? (tileMapper->isNodeBlackListed(this)) :*/ false; 30 30 … … 35 35 // set the frame number of the traversal so that external nodes can find out how active this 36 36 // node is. 37 if (nv.getFrameStamp() && 38 nv.getVisitorType()==osg::NodeVisitor::CULL_VISITOR) 37 if (nv.getFrameStamp() && 38 nv.getVisitorType()==osg::NodeVisitor::CULL_VISITOR) 39 39 { 40 40 setFrameNumberOfLastTraversal(nv.getFrameStamp()->getFrameNumber()); … … 59 59 for(unsigned int i=0;i<maxRangeSize;++i) 60 60 { 61 if (forceUseOfFirstChild || 61 if (forceUseOfFirstChild || 62 62 (_rangeList[i].first<=distance && distance<_rangeList[i].second)) 63 63 { … … 91 91 if (updateTimeStamp) 92 92 _perRangeDataList[numChildren-1]._timeStamp=timeStamp; 93 93 94 94 _children[numChildren-1]->accept(nv); 95 95 }
