From 6ef64593fd2a0a0a036974d5f894531494da5e1c Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Wed, 17 Dec 2008 22:09:14 +0000 Subject: Fix attachment persistence which got broken with some inventory changes a few revs back. --- OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index c1decaa..2c42502 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs @@ -2130,7 +2130,12 @@ namespace OpenSim.Region.Environment.Scenes CachedUserInfo userInfo = CommsManager.UserProfileCacheService.GetUserDetails(remoteClient.AgentId); if (userInfo != null) { - if (userInfo.HasReceivedInventory) + // Do NOT use HasReceivedInventory here, this is called + // from within ItemReceive during login for attachments. + // Using HasReceivedInventory here will break attachment + // persistence! + // + if (userInfo.RootFolder != null) { InventoryItemBase item = userInfo.RootFolder.FindItem(itemID); -- cgit v1.1