diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index d573b1a..0c320ff 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -2659,7 +2659,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2659 | 2659 | ||
2660 | // Vector3 standPositionAdjustment | 2660 | // Vector3 standPositionAdjustment |
2661 | // = part.SitTargetPosition + new Vector3(0.5f, 0f, m_sitAvatarHeight / 2f); | 2661 | // = part.SitTargetPosition + new Vector3(0.5f, 0f, m_sitAvatarHeight / 2f); |
2662 | Vector3 adjustmentForSitPosition = (OffsetPosition - SIT_TARGET_ADJUSTMENT) * part.GetWorldRotation(); | 2662 | Vector3 adjustmentForSitPosition = OffsetPosition * part.ParentGroup.GroupRotation - SIT_TARGET_ADJUSTMENT * part.GetWorldRotation(); |
2663 | 2663 | ||
2664 | // XXX: This is based on the physics capsule sizes. Need to find a better way to read this rather than | 2664 | // XXX: This is based on the physics capsule sizes. Need to find a better way to read this rather than |
2665 | // hardcoding here. | 2665 | // hardcoding here. |