aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index b6f67f7..7a7816a 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -466,6 +466,13 @@ namespace OpenSim.Region.Framework.Scenes
466 if ((actor != null) && (m_parentID == 0)) // KF Do NOT update m_pos here if Av is sitting! 466 if ((actor != null) && (m_parentID == 0)) // KF Do NOT update m_pos here if Av is sitting!
467 m_pos = actor.Position; 467 m_pos = actor.Position;
468 468
469 // If we're sitting, we need to update our position
470 if (m_parentID == 0)
471 {
472 SceneObjectPart part = m_scene.GetSceneObjectPart(m_parentID);
473 m_parentPosition = part.AbsolutePosition;
474 }
475
469 return m_parentPosition + m_pos; 476 return m_parentPosition + m_pos;
470 } 477 }
471 set 478 set