|
|
|
@ -859,7 +859,13 @@ namespace MWGui
|
|
|
|
|
mMessageBoxManager->onFrame(0.f);
|
|
|
|
|
MWBase::Environment::get().getInputManager()->update(0, true, false);
|
|
|
|
|
|
|
|
|
|
mViewer->frame(mViewer->getFrameStamp()->getSimulationTime());
|
|
|
|
|
// at the time this function is called we are in the middle of a frame,
|
|
|
|
|
// so out of order calls are necessary to get a correct frameNumber for the next frame.
|
|
|
|
|
// refer to the advance() and frame() order in Engine::go()
|
|
|
|
|
mViewer->eventTraversal();
|
|
|
|
|
mViewer->updateTraversal();
|
|
|
|
|
mViewer->renderingTraversals();
|
|
|
|
|
mViewer->advance(mViewer->getFrameStamp()->getSimulationTime());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1756,7 +1762,13 @@ namespace MWGui
|
|
|
|
|
{
|
|
|
|
|
MWBase::Environment::get().getInputManager()->update(0, true, false);
|
|
|
|
|
|
|
|
|
|
mViewer->frame(mViewer->getFrameStamp()->getSimulationTime());
|
|
|
|
|
// at the time this function is called we are in the middle of a frame,
|
|
|
|
|
// so out of order calls are necessary to get a correct frameNumber for the next frame.
|
|
|
|
|
// refer to the advance() and frame() order in Engine::go()
|
|
|
|
|
mViewer->eventTraversal();
|
|
|
|
|
mViewer->updateTraversal();
|
|
|
|
|
mViewer->renderingTraversals();
|
|
|
|
|
mViewer->advance(mViewer->getFrameStamp()->getSimulationTime());
|
|
|
|
|
}
|
|
|
|
|
mVideoWidget->stop();
|
|
|
|
|
|
|
|
|
|