From 86a0aaf7f3ba6dc5975e6845e90dfec97c495fe8 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 7 Jun 2010 17:08:53 +0000 Subject: [PATCH] Added insertion of children found by the CountPagedLODsVisitor into the childrenRemoved list to make sure that they are caught and then removed correctly from the PagedLODLists. --- src/osgDB/DatabasePager.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/osgDB/DatabasePager.cpp b/src/osgDB/DatabasePager.cpp index c2591e684..e15680564 100644 --- a/src/osgDB/DatabasePager.cpp +++ b/src/osgDB/DatabasePager.cpp @@ -131,6 +131,14 @@ public: { removedChildren[i]->accept(*this); } + + for(PagedLODset::iterator itr = _pagedLODs.begin(); + itr != _pagedLODs.end(); + ++itr) + { + removedChildren.push_back(*itr); + } + return sizeBefore!=removedChildren.size(); } @@ -266,7 +274,7 @@ public: PagedLODs::iterator plod_itr = _pagedLODs.find(obs_ptr); if (plod_itr != _pagedLODs.end()) { - OSG_NOTICE<<"Removing node from PagedLOD list"<