Fixed an issue where transition animations could stop working after switching theme sets.

This commit is contained in:
Leon Styhre 2022-02-11 18:40:39 +01:00
parent 85cb10d71a
commit 9a24423c82

View file

@ -380,7 +380,7 @@ void Window::update(int deltaTime)
// will be moved. This is required as theme set changes always makes a transition to // will be moved. This is required as theme set changes always makes a transition to
// the system view. If we wouldn't make this update, the camera movement would take // the system view. If we wouldn't make this update, the camera movement would take
// place once the menu has been closed. // place once the menu has been closed.
if (mChangedThemeSet && mGuiStack.size() > 1) { if (mChangedThemeSet) {
mGuiStack.front()->update(deltaTime); mGuiStack.front()->update(deltaTime);
mChangedThemeSet = false; mChangedThemeSet = false;
} }