Fixed expire of children to work with the new Group::removeChildren method.

This commit is contained in:
Robert Osfield
2006-05-04 19:15:52 +00:00
parent a8c52a90f0
commit 3132f1f2f7

View File

@@ -262,7 +262,7 @@ bool PagedLOD::removeExpiredChildren(double expiryTime,NodeList& removedChildren
{
osg::Node* nodeToRemove = _children[_children.size()-1].get();
removedChildren.push_back(nodeToRemove);
return Group::removeChild(nodeToRemove);
return Group::removeChildren(_children.size()-1,1);
}
}
return false;