mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 22:05:36 +08:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user