Revert "NifOsg::Emitter: ignore psToWorld scale"

This reverts commit 7c16630874.

Fixes #3022
openmw-38
scrawl 9 years ago
parent 8c268f239e
commit 36e91617c9

@ -264,9 +264,7 @@ void Emitter::emitParticles(double dt)
osg::MatrixList worldMats = getParticleSystem()->getWorldMatrices();
if (!worldMats.empty())
{
osg::Matrix psToWorld = worldMats[0];
// ignore scales in particlesystem world matrix. this seems wrong, but have to do so for MW compatibility.
psToWorld.orthoNormalize(psToWorld);
const osg::Matrix psToWorld = worldMats[0];
worldToPs = osg::Matrix::inverse(psToWorld);
}

Loading…
Cancel
Save