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
bulletsim
Justin Clark-Casey (justincc) 2011-06-29 00:54:31 +01:00
parent 22f25fae38
commit 3f0b8db0c1
1 changed files with 6 additions and 1 deletions

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);
}
}
}