If an inventory link target is in the same folder as the source, then don't recursively request that folder.

Currently, this should never actually happen but certainly best to handle this case
This commit is contained in:
Justin Clark-Casey (justincc)
2011-06-29 00:54:31 +01:00
parent 22f25fae38
commit 3f0b8db0c1

View File

@@ -1341,7 +1341,12 @@ namespace OpenSim.Region.Framework.Scenes
// Take care of genuinely broken links where the target doesn't exist
if (linkedItem != null)
linkedItemFolderIdsToSend.Add(linkedItem.Folder);
{
// We don't need to send the folder if source and destination of the link are in the same
// folder.
if (linkedItem.Folder != containingFolder.ID)
linkedItemFolderIdsToSend.Add(linkedItem.Folder);
}
}
}