Move position set from taint to logically better position at top of ODECharacter.ProcessTaints() though this makes no practical difference

0.7.2-post-fixes
Justin Clark-Casey (justincc) 2011-10-29 01:46:22 +01:00
parent 69e11af475
commit 2cc49d7d9a
1 changed files with 12 additions and 12 deletions

View File

@ -1250,6 +1250,18 @@ namespace OpenSim.Region.Physics.OdePlugin
internal void ProcessTaints()
{
if (m_taintPosition != _position)
{
if (Body != IntPtr.Zero)
{
d.BodySetPosition(Body, m_taintPosition.X, m_taintPosition.Y, m_taintPosition.Z);
_position.X = m_taintPosition.X;
_position.Y = m_taintPosition.Y;
_position.Z = m_taintPosition.Z;
}
}
if (m_tainted_isPhysical != m_isPhysical)
{
if (m_tainted_isPhysical)
@ -1309,18 +1321,6 @@ namespace OpenSim.Region.Physics.OdePlugin
+ (Amotor==IntPtr.Zero ? "Amotor ":""));
}
}
if (!m_taintPosition.ApproxEquals(_position, 0.05f))
{
if (Body != IntPtr.Zero)
{
d.BodySetPosition(Body, m_taintPosition.X, m_taintPosition.Y, m_taintPosition.Z);
_position.X = m_taintPosition.X;
_position.Y = m_taintPosition.Y;
_position.Z = m_taintPosition.Z;
}
}
}
internal void AddCollisionFrameTime(int p)