Hi Brad, The UpdateVisitor by default visits all children, you can change its TraversalMode to TRAVERSE_ACTIVE_CHILDREN and it will no longer visit the children of your switch.
Robert. On Feb 15, 2008 11:59 PM, Brad Colbert <[EMAIL PROTECTED]> wrote: > Hi, > > I may be misunderstanding what a switch node does but I have two > children of an osg::Switch, one has an update callback. I've called > setAllChildrenOff() on the osg::Switch, but the update callback is still > being called on the child. I thought it was supposed to not traverse > the children? Is this not correct? > > -B > > --- > Brad Colbert > Renaissance Sciences Corporation > W: 480 374-1202 x:202 > M: 480 290-3997 > F: 425 675-8044 > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org