From 6d4f8b38aa763487d64a80f7bc51010b900f7b43 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 2 Nov 2008 08:53:03 +0000 Subject: Cause inventory to be fetched on scripted item gives if the destination avatar is remote or offline. --- OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index 0ebdf69..e2a0eec 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs @@ -1065,6 +1065,8 @@ namespace OpenSim.Region.Environment.Scenes "Avatar {0} cannot be found to add item", avatarId); } + if (!profile.HasReceivedInventory) + CommsManager.UserProfileCacheService.RequestInventoryForUser(avatarId); InventoryItemBase agentItem = CreateAgentInventoryItemFromTask(avatarId, part, itemId); if (agentItem == null) -- cgit v1.1