diff options
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index f57d4fe..f54ba9c 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -2824,14 +2824,20 @@ namespace OpenSim.Region.Framework.Scenes | |||
2824 | Vector3 cameraEyeOffset = part.GetCameraEyeOffset(); | 2824 | Vector3 cameraEyeOffset = part.GetCameraEyeOffset(); |
2825 | bool forceMouselook = part.GetForceMouselook(); | 2825 | bool forceMouselook = part.GetForceMouselook(); |
2826 | 2826 | ||
2827 | ControllingClient.SendSitResponse( | ||
2828 | part.UUID, offset, Orientation, false, cameraAtOffset, cameraEyeOffset, forceMouselook); | ||
2829 | |||
2830 | // not using autopilot | ||
2831 | |||
2832 | Rotation = Orientation; | 2827 | Rotation = Orientation; |
2833 | m_pos = offset; | 2828 | m_pos = offset; |
2834 | 2829 | ||
2830 | if (!part.IsRoot) | ||
2831 | { | ||
2832 | Orientation = part.RotationOffset * Orientation; | ||
2833 | offset = offset * part.RotationOffset; | ||
2834 | offset += part.OffsetPosition; | ||
2835 | } | ||
2836 | |||
2837 | ControllingClient.SendSitResponse( | ||
2838 | part.ParentGroup.UUID, offset, Orientation, false, cameraAtOffset, cameraEyeOffset, forceMouselook); | ||
2839 | |||
2840 | |||
2835 | m_requestedSitTargetID = 0; | 2841 | m_requestedSitTargetID = 0; |
2836 | part.ParentGroup.AddAvatar(UUID); | 2842 | part.ParentGroup.AddAvatar(UUID); |
2837 | 2843 | ||