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.
This commit is contained in:
Robert Osfield
2010-06-07 17:08:53 +00:00
parent 4e42d9e89a
commit 86a0aaf7f3

View File

@@ -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"<<std::endl;
OSG_INFO<<"Removing node from PagedLOD list"<<std::endl;
_pagedLODs.erase(plod_itr);
}
}