From 7ca1a60e91cdbf0fd581616c9d10c255cfc66a77 Mon Sep 17 00:00:00 2001 From: timoore Date: Fri, 14 Dec 2007 22:52:57 +0000 Subject: [PATCH] Check if request has already been satisfied --- src/Scenery/SceneryPager.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Scenery/SceneryPager.hxx b/src/Scenery/SceneryPager.hxx index 197202190..a0c87e78e 100644 --- a/src/Scenery/SceneryPager.hxx +++ b/src/Scenery/SceneryPager.hxx @@ -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 _group; -- 2.39.5