diff options
author | Charles Krinke | 2008-05-23 02:45:52 +0000 |
---|---|---|
committer | Charles Krinke | 2008-05-23 02:45:52 +0000 |
commit | 066b350d207f9410b2198726bdd71555b08c2d6d (patch) | |
tree | f81353b8431b0ea29d499f18b6a2457b097abd7d /OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | |
parent | Thank you kindly, Melanie, for a patch which: (diff) | |
download | opensim-SC-066b350d207f9410b2198726bdd71555b08c2d6d.zip opensim-SC-066b350d207f9410b2198726bdd71555b08c2d6d.tar.gz opensim-SC-066b350d207f9410b2198726bdd71555b08c2d6d.tar.bz2 opensim-SC-066b350d207f9410b2198726bdd71555b08c2d6d.tar.xz |
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.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs index 51521ff..facf72d 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | |||
@@ -286,7 +286,6 @@ namespace OpenSim.Region.Environment.Scenes | |||
286 | public void AddInventoryItem(TaskInventoryItem item) | 286 | public void AddInventoryItem(TaskInventoryItem item) |
287 | { | 287 | { |
288 | item.ParentID = UUID; | 288 | item.ParentID = UUID; |
289 | item.CreationDate = 1000; | ||
290 | item.ParentPartID = UUID; | 289 | item.ParentPartID = UUID; |
291 | 290 | ||
292 | string name=FindAvailableInventoryName(item.Name); | 291 | string name=FindAvailableInventoryName(item.Name); |
@@ -369,6 +368,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
369 | { | 368 | { |
370 | if (m_taskInventory.ContainsKey(item.ItemID)) | 369 | if (m_taskInventory.ContainsKey(item.ItemID)) |
371 | { | 370 | { |
371 | item.ParentID = UUID; | ||
372 | item.ParentPartID = UUID; | ||
373 | item.Flags=m_taskInventory[item.ItemID].Flags; | ||
374 | |||
372 | m_taskInventory[item.ItemID] = item; | 375 | m_taskInventory[item.ItemID] = item; |
373 | m_inventorySerial++; | 376 | m_inventorySerial++; |
374 | TriggerScriptChangedEvent(Changed.INVENTORY); | 377 | TriggerScriptChangedEvent(Changed.INVENTORY); |