OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs
/// <summary>
/// Returns an existing inventory item.  Returns the original, so any changes will be live.
/// </summary>
/// <param name="primID"></param>
/// <param name="itemID"></param>
/// <returns>null if the item does not exist</returns>
Returns an existing inventory item.  Returns the original, so any changes will be live.
Returns an existing inventory item . Returns the original so any changes will be live .
public TaskInventoryItem GetInventoryItem(uint primID, UUID itemID)
        {
            SceneObjectPart part = GetPart(primID);
            if (part != null)
            {
                return part.Inventory.GetInventoryItem(itemID);
            }
            else
            {
                m_log.ErrorFormat(
                    "[PRIM INVENTORY]: " +
                    "Couldn't find prim local ID {0} in prim {1}, {2} to get inventory item ID {3}",
                    primID, part.Name, part.UUID, itemID);
            }
            return null;
        }
public TaskInventoryItem GetInventoryItem ( uint primID , UUID itemID ) { SceneObjectPart part = GetPart ( primID ) ; if ( part != null ) { return part . Inventory . GetInventoryItem ( itemID ) ; } else { m_log . ErrorFormat ( " " + " " , primID , part . Name , part . UUID , itemID ) ; } return null ; }
Returns an existing inventory item.
Returns an existing inventory item .
null if the item does not exist
null if the item does not exist
primID
uint
None
itemID
UUID
None