refactor: simplify redundant double containing folder check
parent
3f0b8db0c1
commit
1b4c08730e
|
@ -1328,7 +1328,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
// m_log.DebugFormat("[AGENT INVENTORY]: Sending inventory folder contents ({0} nodes) for \"{1}\" to {2} {3}",
|
// m_log.DebugFormat("[AGENT INVENTORY]: Sending inventory folder contents ({0} nodes) for \"{1}\" to {2} {3}",
|
||||||
// contents.Folders.Count + contents.Items.Count, containingFolder.Name, client.FirstName, client.LastName);
|
// contents.Folders.Count + contents.Items.Count, containingFolder.Name, client.FirstName, client.LastName);
|
||||||
|
|
||||||
if (containingFolder != null && containingFolder != null)
|
if (containingFolder != null)
|
||||||
{
|
{
|
||||||
// If the folder requested contains links, then we need to send those folders first, otherwise the links
|
// If the folder requested contains links, then we need to send those folders first, otherwise the links
|
||||||
// will be broken in the viewer.
|
// will be broken in the viewer.
|
||||||
|
@ -1353,7 +1353,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
foreach (UUID linkedItemFolderId in linkedItemFolderIdsToSend)
|
foreach (UUID linkedItemFolderId in linkedItemFolderIdsToSend)
|
||||||
SendInventoryUpdate(client, new InventoryFolderBase(linkedItemFolderId), false, true);
|
SendInventoryUpdate(client, new InventoryFolderBase(linkedItemFolderId), false, true);
|
||||||
|
|
||||||
client.SendInventoryFolderDetails(client.AgentId, folder.ID, contents.Items, contents.Folders, containingFolder.Version, fetchFolders, fetchItems);
|
client.SendInventoryFolderDetails(
|
||||||
|
client.AgentId, folder.ID, contents.Items, contents.Folders,
|
||||||
|
containingFolder.Version, fetchFolders, fetchItems);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue