Added setting of UpdateVisitor's FrameStamp and TraversalNumber in updateTraversal()

This commit is contained in:
Robert Osfield 2008-01-09 14:22:44 +00:00
parent 0f2797fc07
commit 9bae59bd6e

View File

@ -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();