diff options
author | Melanie Thielker | 2010-06-14 00:02:17 +0200 |
---|---|---|
committer | Melanie Thielker | 2010-06-14 00:02:17 +0200 |
commit | 62763cc0fb80caae199ea03d2cb8d031924c111e (patch) | |
tree | 52b00dba2fb5352b80fc70802b45088020da045d /OpenSim/Region/Framework/Scenes/ScenePresence.cs | |
parent | Try it witht he root prim (diff) | |
download | opensim-SC_OLD-62763cc0fb80caae199ea03d2cb8d031924c111e.zip opensim-SC_OLD-62763cc0fb80caae199ea03d2cb8d031924c111e.tar.gz opensim-SC_OLD-62763cc0fb80caae199ea03d2cb8d031924c111e.tar.bz2 opensim-SC_OLD-62763cc0fb80caae199ea03d2cb8d031924c111e.tar.xz |
Report current position instead of position at the time we sat down
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 7 |
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 |