okay... but I wonder why the other callbacks for the other osg::Switch
children beyond child #1 don't
get their updateCallbacks invoked.  Perhaps I'll have to try and explicitly
removed the updateCallbacks
or something like that...

On Sat, Mar 27, 2010 at 11:07 AM, Paul Martz <[email protected]> wrote:

> Ted Morris wrote:
>
>> OK, so I turn on one vehicle as in:
>>
>> _vehiclesw->setSingleChildOn(1);
>>
>> The scene just renders the single object and runs through the callback.
>> fine. But then it also is still running through object "0" callback
>> (although it is not being rendered in the scene). Interestingly, the other
>> children > 1 don't have their callbacks invoked under this circumstance.
>>
>
> The UpdateVisitor constructor shows that it uses the TRAVERSE_ALL_CHILDREN
> traversal mode by default, so it doesn't necessarily care which child is
> active. If a subgraph contains update callbacks, the UpdateVisitor will
> traverse.
>   -Paul
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to