OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs
/// <summary>
/// Handle the update of an object's user group.
/// </summary>
/// <param name="remoteClient"></param>
/// <param name="groupID"></param>
/// <param name="objectLocalID"></param>
/// <param name="Garbage"></param>
Handle the update of an object's user group.
Handle the update of an object ' s user group .
private void HandleObjectGroupUpdate(
            IClientAPI remoteClient, UUID groupID, uint objectLocalID, UUID Garbage)
        {
            if (m_groupsModule == null)
                return;
            if (groupID != UUID.Zero)
            {
                GroupMembershipData gmd = m_groupsModule.GetMembershipData(groupID, remoteClient.AgentId);
                if (gmd == null)
                {
                    return;
                }
            }
            SceneObjectGroup so = ((Scene)remoteClient.Scene).GetGroupByPrim(objectLocalID);
            if (so != null)
            {
                if (so.OwnerID == remoteClient.AgentId)
                {
                    so.SetGroup(groupID, remoteClient);
                }
            }
        }
private void HandleObjectGroupUpdate ( IClientAPI remoteClient , UUID groupID , uint objectLocalID , UUID Garbage ) { if ( m_groupsModule == null ) return ; if ( groupID != UUID . Zero ) { GroupMembershipData gmd = m_groupsModule . GetMembershipData ( groupID , remoteClient . AgentId ) ; if ( gmd == null ) { return ; } } SceneObjectGroup so = ( ( Scene ) remoteClient . Scene ) . GetGroupByPrim ( objectLocalID ) ; if ( so != null ) { if ( so . OwnerID == remoteClient . AgentId ) { so . SetGroup ( groupID , remoteClient ) ; } } }
Handle the update of an object's user group.
Handle the update of an object ' s user group .
// XXX: Might be better to get rid of this special casing and have GetMembershipData return something // reasonable for a UUID.Zero group. //                    m_log.WarnFormat( //                        "[GROUPS]: User {0} is not a member of group {1} so they can't update {2} to this group", //                        remoteClient.Name, GroupID, objectLocalID);
remoteClient
IClientAPI
None
groupID
UUID
None
objectLocalID
uint
None
Garbage
UUID
None