Added removeChild(unsigned int, unsigned int) back in for backward compatibility.

This commit is contained in:
Robert Osfield
2006-05-04 19:36:30 +00:00
parent 3132f1f2f7
commit 20820c7ce2

View File

@@ -80,9 +80,9 @@ class OSG_EXPORT Group : public Node
* and do not change the reference count of the Node.
* Note, do not override, only override removeChildren(,) is required.
*/
inline bool removeChild( unsigned int pos )
inline bool removeChild( unsigned int pos, unsigned int numChildrenToRemove=1 )
{
if (pos<_children.size()) return removeChildren(pos,1);
if (pos<_children.size()) return removeChildren(pos,numChildrenToRemove);
else return false;
}