From eca42166e33de737c2ab661adf7349344d5d1528 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 24 Jul 2021 23:48:31 +0100 Subject: [PATCH] some viewers need SendBulkUpdateInventory on moving inventory itmes around --- OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index b99fbbeef3..3ca9effbca 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs @@ -1167,11 +1167,19 @@ namespace OpenSim.Region.Framework.Scenes /// public void MoveInventoryItem(IClientAPI remoteClient, List items) { + UUID agentId = remoteClient.AgentId; m_log.DebugFormat( - "[AGENT INVENTORY]: Moving {0} items for user {1}", items.Count, remoteClient.AgentId); + "[AGENT INVENTORY]: Moving {0} items for user {1}", items.Count, agentId); - if (!InventoryService.MoveItems(remoteClient.AgentId, items)) - m_log.Warn("[AGENT INVENTORY]: Failed to move items for user " + remoteClient.AgentId); + if (!InventoryService.MoveItems(agentId, items)) + m_log.Warn("[AGENT INVENTORY]: Failed to move items for user " + agentId); + + foreach (InventoryItemBase it in items) + { + InventoryItemBase n = InventoryService.GetItem(agentId, it.ID); + if(n != null) + remoteClient.SendBulkUpdateInventory(n); + } } ///