Fix sit with autopilot.
parent
8cbd0d3b5f
commit
3ea72eeabb
|
@ -455,7 +455,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
PhysicsActor actor = m_physicsActor;
|
PhysicsActor actor = m_physicsActor;
|
||||||
if (actor != null)
|
// if (actor != null)
|
||||||
|
if ((actor != null) && (m_parentID == 0)) // KF Do NOT update m_pos here if Av is sitting!
|
||||||
m_pos = actor.Position;
|
m_pos = actor.Position;
|
||||||
|
|
||||||
return m_parentPosition + m_pos;
|
return m_parentPosition + m_pos;
|
||||||
|
@ -476,6 +477,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_parentID == 0) // KF Do NOT update m_pos here if Av is sitting!
|
||||||
m_pos = value;
|
m_pos = value;
|
||||||
m_parentPosition = Vector3.Zero;
|
m_parentPosition = Vector3.Zero;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue