1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-20 15:40:32 +00:00

Merge branch 'hardcodedpopsicles' into 'master'

Rotate blizzard particles

See merge request OpenMW/openmw!2872
This commit is contained in:
psi29a 2023-03-30 20:14:19 +00:00
commit 086e2180fa

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);
}