mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
Merged pull request #1857
This commit is contained in:
commit
fe19d8ff35
@ -170,12 +170,18 @@ namespace MWGui
|
||||
// We are already using node masks to avoid the scene from being updated/rendered, but node masks don't work for computeBound()
|
||||
mViewer->getSceneData()->setComputeBoundingSphereCallback(new DontComputeBoundCallback);
|
||||
|
||||
mShowWallpaper = visible && (MWBase::Environment::get().getStateManager()->getState()
|
||||
== MWBase::StateManager::State_NoGame);
|
||||
|
||||
if (!visible)
|
||||
{
|
||||
draw();
|
||||
return;
|
||||
}
|
||||
|
||||
mVisible = visible;
|
||||
mLoadingBox->setVisible(mVisible);
|
||||
|
||||
mShowWallpaper = mVisible && (MWBase::Environment::get().getStateManager()->getState()
|
||||
== MWBase::StateManager::State_NoGame);
|
||||
|
||||
setVisible(true);
|
||||
|
||||
if (mShowWallpaper)
|
||||
@ -184,9 +190,6 @@ namespace MWGui
|
||||
}
|
||||
|
||||
MWBase::Environment::get().getWindowManager()->pushGuiMode(mShowWallpaper ? GM_LoadingWallpaper : GM_Loading);
|
||||
|
||||
if (!mVisible)
|
||||
draw();
|
||||
}
|
||||
|
||||
void LoadingScreen::loadingOff()
|
||||
|
Loading…
Reference in New Issue
Block a user