Restore update of inventory item on derez/logout. This is necessary to update the name if this has been changed whilst attached.
Note, this behaviour appears to be at variance with the ll grid as of Tues 17 July 2012, testing with viewer 3.2.1. The item name in inventory does not change either at the point of detach or after a relog.0.7.4.1
parent
b0facd147a
commit
356d597296
|
@ -566,8 +566,13 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
|
|||
item.InvType = (int)InventoryType.Object;
|
||||
|
||||
m_scene.InventoryService.UpdateItem(item);
|
||||
|
||||
// If the name of the object has been changed whilst attached then we want to update the inventory
|
||||
// item in the viewer.
|
||||
if (sp.ControllingClient != null)
|
||||
sp.ControllingClient.SendInventoryItemCreateUpdate(item, 0);
|
||||
}
|
||||
|
||||
|
||||
grp.HasGroupChanged = false; // Prevent it being saved over and over
|
||||
}
|
||||
// else
|
||||
|
|
Loading…
Reference in New Issue