Fix for various Viewer::frame calls resetting the simulationTime

c++11
scrawl 10 years ago
parent 9fc2c2e8ee
commit b90fc8ad92

@ -259,7 +259,7 @@ namespace MWGui
MWBase::Environment::get().getInputManager()->update(0, true, true);
//osg::Timer timer;
mViewer->frame();
mViewer->frame(mViewer->getFrameStamp()->getSimulationTime());
//std::cout << "frame took " << timer.time_m() << std::endl;
//if (mViewer->getIncrementalCompileOperation())

@ -851,7 +851,7 @@ namespace MWGui
mMessageBoxManager->onFrame(0.f);
MWBase::Environment::get().getInputManager()->update(0, true, false);
mViewer->frame();
mViewer->frame(mViewer->getFrameStamp()->getSimulationTime());
}
}
}
@ -1744,7 +1744,7 @@ namespace MWGui
{
MWBase::Environment::get().getInputManager()->update(0, true, false);
mViewer->frame();
mViewer->frame(mViewer->getFrameStamp()->getSimulationTime());
}
mVideoWidget->stop();

@ -432,7 +432,7 @@ namespace MWRender
mRootNode->addChild(rttCamera);
mViewer->frame();
mViewer->frame(mViewer->getFrameStamp()->getSimulationTime());
// The draw needs to complete before we can copy back our image.
osg::ref_ptr<NotifyDrawCompletedCallback> callback (new NotifyDrawCompletedCallback);

Loading…
Cancel
Save