mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 06:53:53 +00:00
Do not update WindowManager by world data when there is no game
This commit is contained in:
parent
e11bee250f
commit
155b07f341
1 changed files with 6 additions and 1 deletions
|
@ -318,9 +318,14 @@ bool OMW::Engine::frame(float frametime)
|
|||
mViewer->eventTraversal();
|
||||
mViewer->updateTraversal();
|
||||
|
||||
// update GUI by world data
|
||||
{
|
||||
ScopedProfile<UserStatsType::WindowManager> profile(frameStart, frameNumber, *timer, *stats);
|
||||
mWorld->updateWindowManager();
|
||||
|
||||
if (mStateManager->getState() != MWBase::StateManager::State_NoGame)
|
||||
{
|
||||
mWorld->updateWindowManager();
|
||||
}
|
||||
}
|
||||
|
||||
mLuaWorker->allowUpdate(); // if there is a separate Lua thread, it starts the update now
|
||||
|
|
Loading…
Reference in a new issue