Hi Dusten,

is there some way to remove -all- children that share the same reference pointer? By executing "removeChild( ptr )", it only removes the most recent addition.

Well, removeChild() returns a bool indicating if it removed a child or not. So just remove the child until it returns false:

    while ( group->removeChild(child.get()) );

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [EMAIL PROTECTED]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to