forked from mirror/openmw-tes3mp
Revert part of e91d9d0903
This commit is contained in:
parent
ac2612926e
commit
961aba5e2b
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ void GravityAffector::beginOperate(osgParticle::Program* program)
|
||||||
{
|
{
|
||||||
bool absolute = (program->getReferenceFrame() == osgParticle::ParticleProcessor::ABSOLUTE_RF);
|
bool absolute = (program->getReferenceFrame() == osgParticle::ParticleProcessor::ABSOLUTE_RF);
|
||||||
if (mType == Type_Wind)
|
if (mType == Type_Wind)
|
||||||
mCachedWorldPositionDirection = absolute ? osg::Matrix::transform3x3(program->getLocalToWorldMatrix(), mDirection) : mDirection;
|
mCachedWorldPositionDirection = absolute ? program->rotateLocalToWorld(mDirection) : mDirection;
|
||||||
else // Type_Point
|
else // Type_Point
|
||||||
mCachedWorldPositionDirection = absolute ? program->transformLocalToWorld(mPosition) : mPosition;
|
mCachedWorldPositionDirection = absolute ? program->transformLocalToWorld(mPosition) : mPosition;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue