[osg-submissions] bug fix in osgUtil::UpdateVisitor

Robert Osfield robert.osfield at gmail.com
Mon Jul 7 01:37:18 PDT 2008


Hi Gerben,

As Paul mentioned this isn't a bug, is very much a designed in feature
of the OSG's NodeVisitor.  It's is the responsibility of all Node
Callback to do the traversal of the node, there are a range of
benefits of this approach.  So please just add a travese() call into
your callback and it'll work.

Robert.

On Sun, Jul 6, 2008 at 9:35 PM, Gerben de Vries <demaestro at gmail.com> wrote:
> If a node has a callback function, the update visitor will skip the
> entire subgraph. By removing an 'else' keyword, this incorrect
> behaviour is fixed.
> I fixed this bug because my program wasn't doing what it was supposed
> to (the subgraph callbacks weren't called), after the fix the program
> worked as it should.
>
> In revision 8541.
>
> _______________________________________________
> osg-submissions mailing list
> osg-submissions at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>


More information about the osg-submissions mailing list