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 casebulletsim
							parent
							
								
									22f25fae38
								
							
						
					
					
						commit
						3f0b8db0c1
					
				|  | @ -1341,9 +1341,14 @@ namespace OpenSim.Region.Framework.Scenes | |||
| 
 | ||||
|                         // Take care of genuinely broken links where the target doesn't exist | ||||
|                         if (linkedItem != null) | ||||
|                         { | ||||
|                             // 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); | ||||
|                         } | ||||
|                     } | ||||
|                 } | ||||
| 
 | ||||
|                 foreach (UUID linkedItemFolderId in linkedItemFolderIdsToSend) | ||||
|                     SendInventoryUpdate(client, new InventoryFolderBase(linkedItemFolderId), false, true); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Justin Clark-Casey (justincc)
						Justin Clark-Casey (justincc)