mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
minor: In AttachmentsModule.UpdateKnownItem use the existing IInventoryAccessModule reference that other methods are already using rather than fetching its own copy.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user