diff options
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 961fe29..6ad6522 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -1836,7 +1836,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
1836 | part.TaskInventory.LockItemsForRead(false); | 1836 | part.TaskInventory.LockItemsForRead(false); |
1837 | // Reset sit target. | 1837 | // Reset sit target. |
1838 | if (part.GetAvatarOnSitTarget() == UUID) | 1838 | if (part.GetAvatarOnSitTarget() == UUID) |
1839 | part.SetAvatarOnSitTarget(UUID.Zero); | 1839 | part.SitTargetAvatar = UUID.Zero; |
1840 | if (part.ParentGroup != null) | ||
1841 | part.ParentGroup.TriggerScriptChangedEvent(Changed.LINK); | ||
1842 | |||
1840 | m_parentPosition = part.GetWorldPosition(); | 1843 | m_parentPosition = part.GetWorldPosition(); |
1841 | ControllingClient.SendClearFollowCamProperties(part.ParentUUID); | 1844 | ControllingClient.SendClearFollowCamProperties(part.ParentUUID); |
1842 | } | 1845 | } |
@@ -1986,7 +1989,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1986 | if (!part.IsOccupied) | 1989 | if (!part.IsOccupied) |
1987 | { | 1990 | { |
1988 | //Console.WriteLine("Scripted, unoccupied"); | 1991 | //Console.WriteLine("Scripted, unoccupied"); |
1989 | part.SetAvatarOnSitTarget(UUID); // set that Av will be on it | 1992 | part.SitTargetAvatar = UUID; // set that Av will be on it |
1990 | offset = new Vector3(avSitOffSet.X, avSitOffSet.Y, avSitOffSet.Z); // change ofset to the scripted one | 1993 | offset = new Vector3(avSitOffSet.X, avSitOffSet.Y, avSitOffSet.Z); // change ofset to the scripted one |
1991 | 1994 | ||
1992 | Quaternion nrot = avSitOrientation; | 1995 | Quaternion nrot = avSitOrientation; |