minor: In AttachmentsModule.UpdateKnownItem use the existing IInventoryAccessModule reference that other methods are already using rather than fetching its own copy.

sedebug
Justin Clark-Casey (justincc) 2015-01-17 00:08:16 +00:00
parent 979afbd748
commit 202533c8ed
1 changed files with 2 additions and 3 deletions

View File

@ -795,9 +795,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
Utils.StringToBytes(sceneObjectXml),
sp.UUID);
IInventoryAccessModule invAccess = m_scene.RequestModuleInterface<IInventoryAccessModule>();
invAccess.UpdateInventoryItemAsset(sp.UUID, item, asset);
if (m_invAccessModule != null)
m_invAccessModule.UpdateInventoryItemAsset(sp.UUID, item, asset);
// If the name of the object has been changed whilst attached then we want to update the inventory
// item in the viewer.