OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
/// <summary>
/// Change every item in this inventory to a new owner.
/// </summary>
/// <param name="ownerId"></param>
Change every item in this inventory to a new owner.
Change every item in this inventory to a new owner .
public void ChangeInventoryOwner(UUID ownerId)
        {
            lock (Items)
            {
                if (0 == Items.Count)
                {
                    return;
                }
            }
            HasInventoryChanged = true;
            m_part.ParentGroup.HasGroupChanged = true;
            List<TaskInventoryItem> items = GetInventoryItems();
            foreach (TaskInventoryItem item in items)
            {
                if (ownerId != item.OwnerID)
                    item.LastOwnerID = item.OwnerID;
                item.OwnerID = ownerId;
                item.PermsMask = 0;
                item.PermsGranter = UUID.Zero;
                item.OwnerChanged = true;
            }
        }
public void ChangeInventoryOwner ( UUID ownerId ) { lock ( Items ) { if ( 0 == Items . Count ) { return ; } } HasInventoryChanged = true ; m_part . ParentGroup . HasGroupChanged = true ; List < TaskInventoryItem > items = GetInventoryItems ( ) ; foreach ( TaskInventoryItem item in items ) { if ( ownerId != item . OwnerID ) item . LastOwnerID = item . OwnerID ; item . OwnerID = ownerId ; item . PermsMask = 0 ; item . PermsGranter = UUID . Zero ; item . OwnerChanged = true ; } }
Change every item in this inventory to a new owner.
Change every item in this inventory to a new owner .
ownerId
UUID
None