OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
/// <summary>
/// Change every item in this inventory to a new group.
/// </summary>
/// <param name="groupID"></param>
Change every item in this inventory to a new group.
Change every item in this inventory to a new group .
public void ChangeInventoryGroup(UUID groupID)
        {
            lock (Items)
            {
                if (0 == Items.Count)
                {
                    return;
                }
            }
            if (!m_part.ParentGroup.IsAttachment)
            {
                HasInventoryChanged = true;
                m_part.ParentGroup.HasGroupChanged = true;
            }
            List<TaskInventoryItem> items = GetInventoryItems();
            foreach (TaskInventoryItem item in items)
            {
                if (groupID != item.GroupID)
                    item.GroupID = groupID;
            }
        }
public void ChangeInventoryGroup ( UUID groupID ) { lock ( Items ) { if ( 0 == Items . Count ) { return ; } } if ( ! m_part . ParentGroup . IsAttachment ) { HasInventoryChanged = true ; m_part . ParentGroup . HasGroupChanged = true ; } List < TaskInventoryItem > items = GetInventoryItems ( ) ; foreach ( TaskInventoryItem item in items ) { if ( groupID != item . GroupID ) item . GroupID = groupID ; } }
Change every item in this inventory to a new group.
Change every item in this inventory to a new group .
// Don't let this set the HasGroupChanged flag for attachments // as this happens during rez and we don't want a new asset // for each attachment each time
groupID
UUID
None