Fix attachment persistence which got broken with some inventory

changes a few revs back.
0.6.1-post-fixes
Melanie Thielker 2008-12-17 22:09:14 +00:00
parent ba6b3ade3b
commit 6ef64593fd
1 changed files with 6 additions and 1 deletions

View File

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