1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-06 23:15:35 +00:00

Merge branch 'window_update' into 'master'

Do not update WindowManager by world data when there is no game

See merge request OpenMW/openmw!3588
This commit is contained in:
Zackhasacat 2023-11-14 04:50:18 +00:00
commit fe02978c13

View file

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