From a4cc5f628f053ad1f9f849addf79551cd58e9337 Mon Sep 17 00:00:00 2001 From: "Justin Clark-Casey (justincc)" Date: Thu, 15 Sep 2011 18:42:10 +0100 Subject: [PATCH] Only bother to create an inventory xfer file if there are any items in a prim inventory --- OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index 6085f1e451..d63b411185 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs @@ -866,8 +866,6 @@ namespace OpenSim.Region.Framework.Scenes { lock (m_items) { - CreateInventoryFile(); - // Don't send a inventory xfer name if there are no items. Doing so causes viewer 3 to crash when rezzing // a new script if any previous deletion has left the prim inventory empty. if (m_items.Count == 0) // No inventory @@ -879,6 +877,8 @@ namespace OpenSim.Region.Framework.Scenes client.SendTaskInventory(m_part.UUID, 0, new byte[0]); return; } + + CreateInventoryFile(); // In principle, we should only do the rest if the inventory changed; // by sending m_inventorySerial to the client, it ought to know