diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 628fd20..4d3ab51 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -1947,7 +1947,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
1947 | 1947 | ||
1948 | // m_pos += ParentPosition + new Vector3(0.0f, 0.0f, 2.0f * m_sitAvatarHeight); | 1948 | // m_pos += ParentPosition + new Vector3(0.0f, 0.0f, 2.0f * m_sitAvatarHeight); |
1949 | // ParentPosition = Vector3.Zero; | 1949 | // ParentPosition = Vector3.Zero; |
1950 | m_pos += part.GetWorldPosition() + new Vector3(0.0f, 0.0f, 2.0f * m_sitAvatarHeight); | 1950 | m_pos = part.AbsolutePosition + (m_pos * part.GetWorldRotation()) + new Vector3(0.0f, 0.0f, 2.0f * m_sitAvatarHeight); |
1951 | if (part.SitTargetAvatar == UUID) | ||
1952 | m_bodyRot = part.GetWorldRotation() * part.SitTargetOrientation; | ||
1951 | 1953 | ||
1952 | ParentID = 0; | 1954 | ParentID = 0; |
1953 | ParentPart = null; | 1955 | ParentPart = null; |