1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-05-28 12:41:34 +00:00

Rotate blizzard particles

This commit is contained in:
Evil Eye 2023-03-30 19:20:00 +02:00
parent 4793b71eb3
commit 99ab08eaef

View file

@ -537,7 +537,7 @@ namespace MWRender
osg::Quat quat;
quat.makeRotate(MWWorld::Weather::defaultDirection(), mStormParticleDirection);
// Morrowind deliberately rotates the blizzard mesh, so so should we.
if (mCurrentParticleEffect == Settings::Manager::getString("weatherblizzard", "Models"))
if (mCurrentParticleEffect == "meshes\\blizzard.nif")
quat.makeRotate(osg::Vec3f(-1, 0, 0), mStormParticleDirection);
mParticleNode->setAttitude(quat);
}