mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 03:39:55 +00:00
Revert "NifOsg::Emitter: ignore psToWorld scale"
This reverts commit 7c16630874230d886aa1d94f620c8b332676d93a. Fixes #3022
This commit is contained in:
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…
x
Reference in New Issue
Block a user