1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

Fix weather particles disappearing

This commit is contained in:
scrawl 2015-06-26 02:30:39 +02:00
parent 1d76607005
commit 4ef6aa6b7f

View File

@ -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