mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Fix an inventory naming regression
This commit is contained in:
@@ -290,11 +290,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
/// <param name="item"></param>
|
||||
public void AddInventoryItem(TaskInventoryItem item)
|
||||
{
|
||||
string name = FindAvailableInventoryName(item.Name);
|
||||
if (name == String.Empty)
|
||||
return;
|
||||
|
||||
AddInventoryItem(name, item);
|
||||
AddInventoryItem(item.Name, item);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -335,6 +331,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
|
||||
item.ParentID = UUID;
|
||||
item.ParentPartID = UUID;
|
||||
item.Name = name;
|
||||
|
||||
lock (m_taskInventory)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user