Add system lookup folder fix to the RemoveXInventoryServiceConnector as well since this presumably suffers from the same problem.
parent
7c4e0c1368
commit
4f63edaa72
|
@ -229,6 +229,23 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory
|
||||||
{
|
{
|
||||||
if (item == null)
|
if (item == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (UUID.Zero == item.Folder)
|
||||||
|
{
|
||||||
|
InventoryFolderBase f = m_RemoteConnector.GetFolderForType(item.Owner, (AssetType)item.AssetType);
|
||||||
|
if (f != null)
|
||||||
|
{
|
||||||
|
item.Folder = f.ID;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
f = m_RemoteConnector.GetRootFolder(item.Owner);
|
||||||
|
if (f != null)
|
||||||
|
item.Folder = f.ID;
|
||||||
|
else
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return m_RemoteConnector.AddItem(item);
|
return m_RemoteConnector.AddItem(item);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue