diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index e2c68fd..bb19621 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -2019,8 +2019,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
2019 | sitOrientation = avSitOrientation; | 2019 | sitOrientation = avSitOrientation; |
2020 | autopilot = false; | 2020 | autopilot = false; |
2021 | } | 2021 | } |
2022 | part.ParentGroup.TriggerScriptChangedEvent(Changed.LINK); | ||
2023 | |||
2024 | pos = part.AbsolutePosition + offset; | 2022 | pos = part.AbsolutePosition + offset; |
2025 | //if (Math.Abs(part.AbsolutePosition.Z - AbsolutePosition.Z) > 1) | 2023 | //if (Math.Abs(part.AbsolutePosition.Z - AbsolutePosition.Z) > 1) |
2026 | //{ | 2024 | //{ |
@@ -2066,6 +2064,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
2066 | m_sitAtAutoTarget = autopilot; | 2064 | m_sitAtAutoTarget = autopilot; |
2067 | if (!autopilot) | 2065 | if (!autopilot) |
2068 | HandleAgentSit(remoteClient, UUID); | 2066 | HandleAgentSit(remoteClient, UUID); |
2067 | |||
2068 | // Moved here to avoid a race with default sit anim | ||
2069 | // The script event needs to be raised after the default sit anim is set. | ||
2070 | if (part != null) | ||
2071 | part.ParentGroup.TriggerScriptChangedEvent(Changed.LINK); | ||
2072 | |||
2069 | } | 2073 | } |
2070 | 2074 | ||
2071 | // public void HandleAgentRequestSit(IClientAPI remoteClient, UUID agentID, UUID targetID, Vector3 offset, string sitAnimation) | 2075 | // public void HandleAgentRequestSit(IClientAPI remoteClient, UUID agentID, UUID targetID, Vector3 offset, string sitAnimation) |