From 19c9ea8ca0d5ae447ff6fb9648c7d9e9df4a76bd Mon Sep 17 00:00:00 2001
From: Melanie Thielker
Date: Mon, 8 Sep 2008 23:54:52 +0000
Subject: Fix an inventory naming regression
---
OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
(limited to 'OpenSim/Region')
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
index 26e924f..08f8cee 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
@@ -290,11 +290,7 @@ namespace OpenSim.Region.Environment.Scenes
///
public void AddInventoryItem(TaskInventoryItem item)
{
- string name = FindAvailableInventoryName(item.Name);
- if (name == String.Empty)
- return;
-
- AddInventoryItem(name, item);
+ AddInventoryItem(item.Name, item);
}
///
@@ -335,6 +331,7 @@ namespace OpenSim.Region.Environment.Scenes
item.ParentID = UUID;
item.ParentPartID = UUID;
+ item.Name = name;
lock (m_taskInventory)
{
--
cgit v1.1