mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-01 06:17:58 +03:00
Fix for various Viewer::frame calls resetting the simulationTime
This commit is contained in:
parent
9fc2c2e8ee
commit
b90fc8ad92
3 changed files with 4 additions and 4 deletions
|
@ -259,7 +259,7 @@ namespace MWGui
|
||||||
MWBase::Environment::get().getInputManager()->update(0, true, true);
|
MWBase::Environment::get().getInputManager()->update(0, true, true);
|
||||||
|
|
||||||
//osg::Timer timer;
|
//osg::Timer timer;
|
||||||
mViewer->frame();
|
mViewer->frame(mViewer->getFrameStamp()->getSimulationTime());
|
||||||
//std::cout << "frame took " << timer.time_m() << std::endl;
|
//std::cout << "frame took " << timer.time_m() << std::endl;
|
||||||
|
|
||||||
//if (mViewer->getIncrementalCompileOperation())
|
//if (mViewer->getIncrementalCompileOperation())
|
||||||
|
|
|
@ -851,7 +851,7 @@ namespace MWGui
|
||||||
mMessageBoxManager->onFrame(0.f);
|
mMessageBoxManager->onFrame(0.f);
|
||||||
MWBase::Environment::get().getInputManager()->update(0, true, false);
|
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);
|
MWBase::Environment::get().getInputManager()->update(0, true, false);
|
||||||
|
|
||||||
mViewer->frame();
|
mViewer->frame(mViewer->getFrameStamp()->getSimulationTime());
|
||||||
}
|
}
|
||||||
mVideoWidget->stop();
|
mVideoWidget->stop();
|
||||||
|
|
||||||
|
|
|
@ -432,7 +432,7 @@ namespace MWRender
|
||||||
|
|
||||||
mRootNode->addChild(rttCamera);
|
mRootNode->addChild(rttCamera);
|
||||||
|
|
||||||
mViewer->frame();
|
mViewer->frame(mViewer->getFrameStamp()->getSimulationTime());
|
||||||
|
|
||||||
// The draw needs to complete before we can copy back our image.
|
// The draw needs to complete before we can copy back our image.
|
||||||
osg::ref_ptr<NotifyDrawCompletedCallback> callback (new NotifyDrawCompletedCallback);
|
osg::ref_ptr<NotifyDrawCompletedCallback> callback (new NotifyDrawCompletedCallback);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue