OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs
/// <summary>
/// Update an existing inventory item.
/// </summary>
/// <param name="item">The updated item.  An item with the same id must already exist
/// in this prim's inventory</param>
/// <returns>false if the item did not exist, true if the update occurred succesfully</returns>
Update an existing inventory item.
Update an existing inventory item .
public bool UpdateInventoryItem(TaskInventoryItem item)
        {
            SceneObjectPart part = GetPart(item.ParentPartID);
            if (part != null)
            {
                part.Inventory.UpdateInventoryItem(item);
                return true;
            }
            else
            {
                m_log.ErrorFormat(
                    "[PRIM INVENTORY]: " +
                    "Couldn't find prim ID {0} to update item {1}, {2}",
                    item.ParentPartID, item.Name, item.ItemID);
            }
            return false;
        }
public bool UpdateInventoryItem ( TaskInventoryItem item ) { SceneObjectPart part = GetPart ( item . ParentPartID ) ; if ( part != null ) { part . Inventory . UpdateInventoryItem ( item ) ; return true ; } else { m_log . ErrorFormat ( " " + " " , item . ParentPartID , item . Name , item . ItemID ) ; } return false ; }
Update an existing inventory item.
Update an existing inventory item .
false if the item did not exist, true if the update occurred succesfully
false if the item did not exist true if the update occurred succesfully
item
TaskInventoryItem
The updated item.  An item with the same id must already exist
in this prim's inventory
The updated item . An item with the same id must already exist in this prim ' s inventory