aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie2011-11-10 20:26:14 +0100
committerMelanie2011-11-10 20:26:14 +0100
commit063920e0a2e746f73d5088889951fa45ac10ec38 (patch)
tree45a39d56d6a390f92f129169344eec7f52405800
parentMerge branch 'master' into bigmerge (diff)
downloadopensim-SC-063920e0a2e746f73d5088889951fa45ac10ec38.zip
opensim-SC-063920e0a2e746f73d5088889951fa45ac10ec38.tar.gz
opensim-SC-063920e0a2e746f73d5088889951fa45ac10ec38.tar.bz2
opensim-SC-063920e0a2e746f73d5088889951fa45ac10ec38.tar.xz
Fix misaligned sit animation on scripted sit caused by the default sit
animation being run after the scripted one.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs8
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)