save one call to grid to get agent groups powers (xmlrpcgoups only for now

LSLKeyTest
UbitUmarov 2016-07-01 18:38:38 +01:00
parent aa744eecf2
commit 7b7483ec7e
2 changed files with 2 additions and 3 deletions

View File

@ -12988,7 +12988,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
if (data != null)
{
for (int i = 0; i < data.Length; i++)
m_groupPowers[data[i].GroupID] = data[i].GroupPowers;
m_groupPowers[data[i].GroupID] = data[i].GroupPowers;
}
}
}

View File

@ -1408,9 +1408,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
SendDataUpdate(remoteClient, tellOthers);
GroupMembershipData[] membershipArray = GetProfileListedGroupMemberships(remoteClient, agentID);
IEventQueue eq = remoteClient.Scene.RequestModuleInterface<IEventQueue>();
remoteClient.UpdateGroupMembership(membershipArray);
remoteClient.RefreshGroupMembership();
remoteClient.SendAgentGroupDataUpdate(agentID, membershipArray);
}