1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 10:23:56 +00:00

Fix for various Viewer::frame calls resetting the simulationTime

This commit is contained in:
scrawl 2015-06-14 18:19:53 +02:00
parent 9fc2c2e8ee
commit b90fc8ad92
3 changed files with 4 additions and 4 deletions

View file

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

View file

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

View file

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