mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
Fix attachment persistence which got broken with some inventory
changes a few revs back.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user