mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-17 11:43:25 +00:00
Fix sun glare persisting after changing to an interior cell
This commit is contained in:
parent
4983d08fe4
commit
c7805e7dd2
@ -640,7 +640,7 @@ Ogre::SceneNode* SkyManager::getSunNode()
|
||||
|
||||
void SkyManager::setGlareEnabled (bool enabled)
|
||||
{
|
||||
if (!mCreated)
|
||||
if (!mCreated || !mEnabled)
|
||||
return;
|
||||
mSunGlare->setVisible (mSunEnabled && enabled);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user