From 9bae59bd6e8fe021e5969eb009164f8788e4e756 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 9 Jan 2008 14:22:44 +0000 Subject: [PATCH] Added setting of UpdateVisitor's FrameStamp and TraversalNumber in updateTraversal() --- src/osgViewer/CompositeViewer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osgViewer/CompositeViewer.cpp b/src/osgViewer/CompositeViewer.cpp index ef5e466a7..a1e13d4c3 100644 --- a/src/osgViewer/CompositeViewer.cpp +++ b/src/osgViewer/CompositeViewer.cpp @@ -908,6 +908,10 @@ void CompositeViewer::updateTraversal() double beginUpdateTraversal = osg::Timer::instance()->delta_s(_startTick, osg::Timer::instance()->tick()); + _updateVisitor->reset(); + _updateVisitor->setFrameStamp(getFrameStamp()); + _updateVisitor->setTraversalNumber(getFrameStamp()->getFrameNumber()); + Scenes scenes; getScenes(scenes); for(Scenes::iterator sitr = scenes.begin();