diff options
author | teravus | 2012-12-19 22:14:20 -0500 |
---|---|---|
committer | teravus | 2012-12-19 22:14:20 -0500 |
commit | f9051c22d8170bb2824d9a38540f2fdce4367f6e (patch) | |
tree | f84a3e4c8bda04a10e7ca28817bc564092fbd233 | |
parent | Merge branch 'avination' of careminster:/var/git/careminster into teravuswork (diff) | |
download | opensim-SC_OLD-f9051c22d8170bb2824d9a38540f2fdce4367f6e.zip opensim-SC_OLD-f9051c22d8170bb2824d9a38540f2fdce4367f6e.tar.gz opensim-SC_OLD-f9051c22d8170bb2824d9a38540f2fdce4367f6e.tar.bz2 opensim-SC_OLD-f9051c22d8170bb2824d9a38540f2fdce4367f6e.tar.xz |
* Send an Unsolicited AgentDataUpdate packet upon Root Agent Status to synchronize with Agni.
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 7ff163b..70e7af5 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -925,6 +925,26 @@ namespace OpenSim.Region.Framework.Scenes | |||
925 | 925 | ||
926 | m_scene.EventManager.TriggerSetRootAgentScene(m_uuid, m_scene); | 926 | m_scene.EventManager.TriggerSetRootAgentScene(m_uuid, m_scene); |
927 | 927 | ||
928 | UUID groupUUID = UUID.Zero; | ||
929 | string GroupName = string.Empty; | ||
930 | ulong groupPowers = 0; | ||
931 | |||
932 | // ---------------------------------- | ||
933 | // Previous Agent Difference - AGNI sends an unsolicited AgentDataUpdate upon root agent status | ||
934 | if (gm != null) | ||
935 | { | ||
936 | groupUUID = ControllingClient.ActiveGroupId; | ||
937 | GroupRecord record = gm.GetGroupRecord(groupUUID); | ||
938 | if (record != null) | ||
939 | GroupName = record.GroupName; | ||
940 | GroupMembershipData groupMembershipData = gm.GetMembershipData(groupUUID, m_uuid); | ||
941 | if (groupMembershipData != null) | ||
942 | groupPowers = groupMembershipData.GroupPowers; | ||
943 | } | ||
944 | ControllingClient.SendAgentDataUpdate(m_uuid, groupUUID, Firstname, Lastname, groupPowers, GroupName, | ||
945 | Grouptitle); | ||
946 | // ------------------------------------ | ||
947 | |||
928 | if (ParentID == 0) | 948 | if (ParentID == 0) |
929 | { | 949 | { |
930 | // Moved this from SendInitialData to ensure that Appearance is initialized | 950 | // Moved this from SendInitialData to ensure that Appearance is initialized |