mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-29 00:36:40 +00:00
Fix sun glare persisting after changing to an interior cell
This commit is contained in:
parent
4983d08fe4
commit
c7805e7dd2
1 changed files with 1 additions and 1 deletions
|
@ -640,7 +640,7 @@ Ogre::SceneNode* SkyManager::getSunNode()
|
|||
|
||||
void SkyManager::setGlareEnabled (bool enabled)
|
||||
{
|
||||
if (!mCreated)
|
||||
if (!mCreated || !mEnabled)
|
||||
return;
|
||||
mSunGlare->setVisible (mSunEnabled && enabled);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue