Check if request has already been satisfied
This commit is contained in:
parent
7cb5fd170a
commit
7ca1a60e91
1 changed files with 3 additions and 2 deletions
|
@ -54,8 +54,9 @@ protected:
|
|||
_frameStamp(frameStamp) {}
|
||||
void doRequest(SceneryPager* pager)
|
||||
{
|
||||
pager->requestNodeFile(_fileName, _group.get(), _priority,
|
||||
_frameStamp.get());
|
||||
if (_group->getNumChildren() == 0)
|
||||
pager->requestNodeFile(_fileName, _group.get(), _priority,
|
||||
_frameStamp.get());
|
||||
}
|
||||
std::string _fileName;
|
||||
osg::ref_ptr<osg::Group> _group;
|
||||
|
|
Loading…
Add table
Reference in a new issue