From 20820c7ce20afe0d287a648744a99fe335d52007 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 4 May 2006 19:36:30 +0000 Subject: [PATCH] Added removeChild(unsigned int, unsigned int) back in for backward compatibility. --- include/osg/Group | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/osg/Group b/include/osg/Group index 1b9c9edef..09d24cdcf 100644 --- a/include/osg/Group +++ b/include/osg/Group @@ -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; }