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

0.8.1-post-fixes
Justin Clark-Casey (justincc) 2015-01-17 00:08:16 +00:00
parent 2995868176
commit 1f04e1bc23
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.