mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 07:09:42 +00:00
Revert "NifOsg::Emitter: ignore psToWorld scale"
This reverts commit 7c16630874
.
Fixes #3022
This commit is contained in:
parent
8c268f239e
commit
36e91617c9
1 changed files with 1 additions and 3 deletions
|
@ -264,9 +264,7 @@ void Emitter::emitParticles(double dt)
|
||||||
osg::MatrixList worldMats = getParticleSystem()->getWorldMatrices();
|
osg::MatrixList worldMats = getParticleSystem()->getWorldMatrices();
|
||||||
if (!worldMats.empty())
|
if (!worldMats.empty())
|
||||||
{
|
{
|
||||||
osg::Matrix psToWorld = worldMats[0];
|
const 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);
|
|
||||||
worldToPs = osg::Matrix::inverse(psToWorld);
|
worldToPs = osg::Matrix::inverse(psToWorld);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue