forked from teamnwah/openmw-tes3coop
Fix weather particles disappearing
This commit is contained in:
parent
1d76607005
commit
4ef6aa6b7f
1 changed files with 3 additions and 0 deletions
|
@ -923,7 +923,10 @@ void SkyManager::setWeather(const MWWorld::WeatherResult& weather)
|
||||||
if (mCurrentParticleEffect.empty())
|
if (mCurrentParticleEffect.empty())
|
||||||
{
|
{
|
||||||
if (mParticleNode)
|
if (mParticleNode)
|
||||||
|
{
|
||||||
mRootNode->removeChild(mParticleNode);
|
mRootNode->removeChild(mParticleNode);
|
||||||
|
mParticleNode = NULL;
|
||||||
|
}
|
||||||
mParticleEffect = NULL;
|
mParticleEffect = NULL;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue