diff options
author | Melanie | 2012-02-23 22:26:17 +0100 |
---|---|---|
committer | Melanie | 2012-02-23 22:26:17 +0100 |
commit | 1c0adfa6e025045b6c309943f886f641a4df8e38 (patch) | |
tree | baab88d61589d923e03b821e307b835cee7b4a48 /OpenSim | |
parent | Fix preserving the animation state of a crossing seated avatar (diff) | |
download | opensim-SC-1c0adfa6e025045b6c309943f886f641a4df8e38.zip opensim-SC-1c0adfa6e025045b6c309943f886f641a4df8e38.tar.gz opensim-SC-1c0adfa6e025045b6c309943f886f641a4df8e38.tar.bz2 opensim-SC-1c0adfa6e025045b6c309943f886f641a4df8e38.tar.xz |
Correct sit position calculations
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 2e86315..f835e56 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -4845,7 +4845,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4845 | if (part != null && part != part.ParentGroup.RootPart) | 4845 | if (part != null && part != part.ParentGroup.RootPart) |
4846 | { | 4846 | { |
4847 | position = part.OffsetPosition + presence.OffsetPosition * part.RotationOffset; | 4847 | position = part.OffsetPosition + presence.OffsetPosition * part.RotationOffset; |
4848 | rotation = presence.Rotation * part.RotationOffset; | 4848 | rotation = part.RotationOffset * presence.Rotation; |
4849 | } | 4849 | } |
4850 | } | 4850 | } |
4851 | 4851 | ||
@@ -4974,7 +4974,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4974 | if (part != null && part != part.ParentGroup.RootPart) | 4974 | if (part != null && part != part.ParentGroup.RootPart) |
4975 | { | 4975 | { |
4976 | offsetPosition = part.OffsetPosition + data.OffsetPosition * part.RotationOffset; | 4976 | offsetPosition = part.OffsetPosition + data.OffsetPosition * part.RotationOffset; |
4977 | rotation = data.Rotation * part.RotationOffset; | 4977 | rotation = part.RotationOffset * data.Rotation; |
4978 | parentID = part.ParentGroup.RootPart.LocalId; | 4978 | parentID = part.ParentGroup.RootPart.LocalId; |
4979 | } | 4979 | } |
4980 | } | 4980 | } |