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

Reply via email to