diff options
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs index 4af4ddb..8705dd5 100644 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | |||
@@ -795,9 +795,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
795 | Utils.StringToBytes(sceneObjectXml), | 795 | Utils.StringToBytes(sceneObjectXml), |
796 | sp.UUID); | 796 | sp.UUID); |
797 | 797 | ||
798 | IInventoryAccessModule invAccess = m_scene.RequestModuleInterface<IInventoryAccessModule>(); | 798 | if (m_invAccessModule != null) |
799 | 799 | m_invAccessModule.UpdateInventoryItemAsset(sp.UUID, item, asset); | |
800 | invAccess.UpdateInventoryItemAsset(sp.UUID, item, asset); | ||
801 | 800 | ||
802 | // If the name of the object has been changed whilst attached then we want to update the inventory | 801 | // If the name of the object has been changed whilst attached then we want to update the inventory |
803 | // item in the viewer. | 802 | // item in the viewer. |