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

Gerben de Vries demaestro at gmail.com
Mon Jul 7 12:31:31 PDT 2008


Okay, I didn't know it was supposed to work that way (but I see now
that I could have). Thanks a lot Paul and Robert!

2008/7/6 Paul Martz <pmartz at skew-matrix.com>:
> I don't think your fix is necessary, as the subgraph will be traversed if
> your Callback's operator() method calls traverse().
>
> There are several examples that demonstrate this behavior. See the Quick
> Start Guide section on Callbacks for more info.
> www.osgbooks.com
>
> Paul Martz
> Skew Matrix Software LLC
> http://www.skew-matrix.com
> +1 303 859 9466
>
>
>
>> -----Original Message-----
>> From: osg-submissions-bounces at lists.openscenegraph.org
>> [mailto:osg-submissions-bounces at lists.openscenegraph.org] On
>> Behalf Of Gerben de Vries
>> Sent: Sunday, July 06, 2008 2:35 PM
>> To: osg-submissions at lists.openscenegraph.org
>> Subject: [osg-submissions] bug fix in osgUtil::UpdateVisitor
>>
>> 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