diff options
author | Justin Clark-Casey (justincc) | 2011-12-19 23:03:45 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-12-19 23:03:45 +0000 |
commit | 87a2d8d51b66db12a487014deb8447fb2432e2a3 (patch) | |
tree | 88b5985189fcd4af3849e1031e9d1e74ccedfc37 /OpenSim/Region/Framework/Scenes/Scene.cs | |
parent | Stop sending the viewer its own AvatarAppearance packet. (diff) | |
download | opensim-SC_OLD-87a2d8d51b66db12a487014deb8447fb2432e2a3.zip opensim-SC_OLD-87a2d8d51b66db12a487014deb8447fb2432e2a3.tar.gz opensim-SC_OLD-87a2d8d51b66db12a487014deb8447fb2432e2a3.tar.bz2 opensim-SC_OLD-87a2d8d51b66db12a487014deb8447fb2432e2a3.tar.xz |
Move HandleObjectGroupUpdate() from GroupsModule to Scene.PacketHandlers.cs as this is updating SOG/SOP.GroupID, which is arguably generic.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 4914d65..6666328 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -139,6 +139,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
139 | protected IDialogModule m_dialogModule; | 139 | protected IDialogModule m_dialogModule; |
140 | protected IEntityTransferModule m_teleportModule; | 140 | protected IEntityTransferModule m_teleportModule; |
141 | protected ICapabilitiesModule m_capsModule; | 141 | protected ICapabilitiesModule m_capsModule; |
142 | protected IGroupsModule m_groupsModule; | ||
142 | 143 | ||
143 | /// <summary> | 144 | /// <summary> |
144 | /// Current scene frame number | 145 | /// Current scene frame number |
@@ -1164,6 +1165,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1164 | m_dialogModule = RequestModuleInterface<IDialogModule>(); | 1165 | m_dialogModule = RequestModuleInterface<IDialogModule>(); |
1165 | m_capsModule = RequestModuleInterface<ICapabilitiesModule>(); | 1166 | m_capsModule = RequestModuleInterface<ICapabilitiesModule>(); |
1166 | m_teleportModule = RequestModuleInterface<IEntityTransferModule>(); | 1167 | m_teleportModule = RequestModuleInterface<IEntityTransferModule>(); |
1168 | m_groupsModule = RequestModuleInterface<IGroupsModule>(); | ||
1167 | } | 1169 | } |
1168 | 1170 | ||
1169 | #endregion | 1171 | #endregion |
@@ -2733,6 +2735,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2733 | client.OnObjectDescription += m_sceneGraph.PrimDescription; | 2735 | client.OnObjectDescription += m_sceneGraph.PrimDescription; |
2734 | client.OnObjectIncludeInSearch += m_sceneGraph.MakeObjectSearchable; | 2736 | client.OnObjectIncludeInSearch += m_sceneGraph.MakeObjectSearchable; |
2735 | client.OnObjectOwner += ObjectOwner; | 2737 | client.OnObjectOwner += ObjectOwner; |
2738 | client.OnObjectGroupRequest += HandleObjectGroupUpdate; | ||
2736 | } | 2739 | } |
2737 | 2740 | ||
2738 | public virtual void SubscribeToClientPrimRezEvents(IClientAPI client) | 2741 | public virtual void SubscribeToClientPrimRezEvents(IClientAPI client) |
@@ -3520,15 +3523,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
3520 | m_log.ErrorFormat("[CONNECTION BEGIN]: Estate Settings is null!"); | 3523 | m_log.ErrorFormat("[CONNECTION BEGIN]: Estate Settings is null!"); |
3521 | } | 3524 | } |
3522 | 3525 | ||
3523 | IGroupsModule groupsModule = | ||
3524 | RequestModuleInterface<IGroupsModule>(); | ||
3525 | |||
3526 | List<UUID> agentGroups = new List<UUID>(); | 3526 | List<UUID> agentGroups = new List<UUID>(); |
3527 | 3527 | ||
3528 | if (groupsModule != null) | 3528 | if (m_groupsModule != null) |
3529 | { | 3529 | { |
3530 | GroupMembershipData[] GroupMembership = | 3530 | GroupMembershipData[] GroupMembership = m_groupsModule.GetMembershipData(agent.AgentID); |
3531 | groupsModule.GetMembershipData(agent.AgentID); | ||
3532 | 3531 | ||
3533 | if (GroupMembership != null) | 3532 | if (GroupMembership != null) |
3534 | { | 3533 | { |