1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 23:53:52 +00:00

Fix the renderbin for weather particles

Regression from commit 2ee6b41887
This commit is contained in:
scrawl 2015-11-02 21:51:01 +01:00
parent bd1f3493d7
commit d6f45c3390

View file

@ -1453,6 +1453,8 @@ void SkyManager::setWeather(const WeatherResult& weather)
if (!mParticleNode) if (!mParticleNode)
{ {
mParticleNode = new osg::PositionAttitudeTransform; mParticleNode = new osg::PositionAttitudeTransform;
mParticleNode->getOrCreateStateSet()->setRenderBinDetails(RenderBin_Default, "RenderBin");
mParticleNode->getOrCreateStateSet()->setNestRenderBins(false);
mRootNode->addChild(mParticleNode); mRootNode->addChild(mParticleNode);
} }
mParticleEffect = mSceneManager->createInstance(mCurrentParticleEffect, mParticleNode); mParticleEffect = mSceneManager->createInstance(mCurrentParticleEffect, mParticleNode);