mirror of
https://github.com/opensim/opensim.git
synced 2026-05-14 18:55:39 +08:00
Finally remove the requirement for an InventoryItem/FolderBase object to
be passed into inventory queries. This makes the API more homogenous and also will more clearly show coding errors related to HG inventory where the .Owner field has a meaning for a query but wasn't always set.
This commit is contained in:
@@ -2836,8 +2836,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
||||
if (wearable[0].ItemID != UUID.Zero)
|
||||
{
|
||||
// Get inventory item and copy it
|
||||
InventoryItemBase item = new InventoryItemBase(wearable[0].ItemID, source);
|
||||
item = inventoryService.GetItem(item);
|
||||
InventoryItemBase item = inventoryService.GetItem(source, wearable[0].ItemID);
|
||||
|
||||
if (item != null)
|
||||
{
|
||||
@@ -2890,8 +2889,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
||||
if (itemID != UUID.Zero)
|
||||
{
|
||||
// Get inventory item and copy it
|
||||
InventoryItemBase item = new InventoryItemBase(itemID, source);
|
||||
item = inventoryService.GetItem(item);
|
||||
InventoryItemBase item = inventoryService.GetItem(source, itemID);
|
||||
|
||||
if (item != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user