mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
Thank you kindly, Melanie, for:
Nothing huge, but the new button code for producing a new script does well, but the script will not allow for name change once created. It reverts back to new script.
This commit is contained in:
@@ -286,7 +286,6 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
public void AddInventoryItem(TaskInventoryItem item)
|
||||
{
|
||||
item.ParentID = UUID;
|
||||
item.CreationDate = 1000;
|
||||
item.ParentPartID = UUID;
|
||||
|
||||
string name=FindAvailableInventoryName(item.Name);
|
||||
@@ -369,6 +368,10 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
{
|
||||
if (m_taskInventory.ContainsKey(item.ItemID))
|
||||
{
|
||||
item.ParentID = UUID;
|
||||
item.ParentPartID = UUID;
|
||||
item.Flags=m_taskInventory[item.ItemID].Flags;
|
||||
|
||||
m_taskInventory[item.ItemID] = item;
|
||||
m_inventorySerial++;
|
||||
TriggerScriptChangedEvent(Changed.INVENTORY);
|
||||
|
||||
Reference in New Issue
Block a user