mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-09 20:35:48 -04: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();
|
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…
x
Reference in New Issue
Block a user