1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 03:40:14 +00:00

Fix pinned windows not being updated

This commit is contained in:
scrawl 2017-10-04 17:08:52 +02:00
parent 49a0922f1b
commit e4f0f7157a

View File

@ -864,6 +864,14 @@ namespace MWGui
for (WindowBase* window : state.mWindows) for (WindowBase* window : state.mWindows)
window->onFrame(frameDuration); window->onFrame(frameDuration);
} }
else
{
// update pinned windows if visible
for (WindowBase* window : mGuiModeStates[GM_Inventory].mWindows)
if (window->isVisible())
window->onFrame(frameDuration);
}
if (!mCurrentModals.empty()) if (!mCurrentModals.empty())
mCurrentModals.back()->onFrame(frameDuration); mCurrentModals.back()->onFrame(frameDuration);