mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Report current position instead of position at the time we sat down
This commit is contained in:
@@ -4732,7 +4732,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
// Update sitting avatar chat position
|
||||
|
||||
p.AbsolutePosition = GroupPosition;
|
||||
p.AbsolutePosition = GroupPosition + OffsetPosition + m_sitTargetPosition;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -466,6 +466,13 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if ((actor != null) && (m_parentID == 0)) // KF Do NOT update m_pos here if Av is sitting!
|
||||
m_pos = actor.Position;
|
||||
|
||||
// If we're sitting, we need to update our position
|
||||
if (m_parentID == 0)
|
||||
{
|
||||
SceneObjectPart part = m_scene.GetSceneObjectPart(m_parentID);
|
||||
m_parentPosition = part.AbsolutePosition;
|
||||
}
|
||||
|
||||
return m_parentPosition + m_pos;
|
||||
}
|
||||
set
|
||||
|
||||
Reference in New Issue
Block a user