aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie2011-10-11 20:57:31 +0100
committerMelanie2011-10-11 20:57:31 +0100
commit7d2a3dc174d0c2f55f3f7b539cd7eed706297832 (patch)
treeab9889a0d4a7e43fcbfb04a6dbff27e2a7055e51 /OpenSim
parentFixed a movement regression - Kitto's jump code is no longer needed (plus it'... (diff)
parentIf a prim inventory becomes empty through deletion, send an empty xfer file n... (diff)
downloadopensim-SC-7d2a3dc174d0c2f55f3f7b539cd7eed706297832.zip
opensim-SC-7d2a3dc174d0c2f55f3f7b539cd7eed706297832.tar.gz
opensim-SC-7d2a3dc174d0c2f55f3f7b539cd7eed706297832.tar.bz2
opensim-SC-7d2a3dc174d0c2f55f3f7b539cd7eed706297832.tar.xz
Merge commit '42f1b88eb2492f8d218526c1b30ac027a65d67f3' into bigmerge
Conflicts: OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
index f6b690c..58ca00c 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
@@ -988,11 +988,16 @@ namespace OpenSim.Region.Framework.Scenes
988 988
989 private bool CreateInventoryFileName() 989 private bool CreateInventoryFileName()
990 { 990 {
991// m_log.DebugFormat(
992// "[PRIM INVENTORY]: Creating inventory file for {0} {1} {2}, serial {3}",
993// m_part.Name, m_part.UUID, m_part.LocalId, m_inventorySerial);
994
991 if (m_inventoryFileName == String.Empty || 995 if (m_inventoryFileName == String.Empty ||
992 m_inventoryFileNameSerial < m_inventorySerial) 996 m_inventoryFileNameSerial < m_inventorySerial)
993 { 997 {
994 m_inventoryFileName = "inventory_" + UUID.Random().ToString() + ".tmp"; 998 m_inventoryFileName = "inventory_" + UUID.Random().ToString() + ".tmp";
995 m_inventoryFileNameSerial = m_inventorySerial; 999 m_inventoryFileNameSerial = m_inventorySerial;
1000
996 return true; 1001 return true;
997 } 1002 }
998 1003
@@ -1025,6 +1030,12 @@ namespace OpenSim.Region.Framework.Scenes
1025 return; 1030 return;
1026 } 1031 }
1027 1032
1033 if (m_items.Count == 0) // No inventory
1034 {
1035 client.SendTaskInventory(m_part.UUID, 0, new byte[0]);
1036 return;
1037 }
1038
1028 if (!changed) 1039 if (!changed)
1029 { 1040 {
1030 if (m_inventoryFileData.Length > 2) 1041 if (m_inventoryFileData.Length > 2)