diff options
author | UbitUmarov | 2019-02-21 21:54:24 +0000 |
---|---|---|
committer | UbitUmarov | 2019-02-21 21:54:24 +0000 |
commit | 17ea412da1a38f8e09d95c5604694c595f111473 (patch) | |
tree | 7d421f4b02e50347e80635e30276da635a5a7cac /OpenSim/Region | |
parent | Yengine:save minEventDelay in script state (diff) | |
download | opensim-SC-17ea412da1a38f8e09d95c5604694c595f111473.zip opensim-SC-17ea412da1a38f8e09d95c5604694c595f111473.tar.gz opensim-SC-17ea412da1a38f8e09d95c5604694c595f111473.tar.bz2 opensim-SC-17ea412da1a38f8e09d95c5604694c595f111473.tar.xz |
fix last owner on add to object inventory
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs index bf217a5..8899e96 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs | |||
@@ -154,7 +154,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
154 | // We're adding this to a prim we don't own. Force | 154 | // We're adding this to a prim we don't own. Force |
155 | // owner change | 155 | // owner change |
156 | taskItem.Flags |= (uint)InventoryItemFlags.ObjectSlamPerm; | 156 | taskItem.Flags |= (uint)InventoryItemFlags.ObjectSlamPerm; |
157 | 157 | taskItem.LastOwnerID = item.Owner; | |
158 | } | 158 | } |
159 | else | 159 | else |
160 | { | 160 | { |
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index 4934b83..bc9ab7f 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | |||
@@ -815,10 +815,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
815 | m_items.LockItemsForWrite(true); | 815 | m_items.LockItemsForWrite(true); |
816 | m_items.Add(item.ItemID, item); | 816 | m_items.Add(item.ItemID, item); |
817 | m_items.LockItemsForWrite(false); | 817 | m_items.LockItemsForWrite(false); |
818 | if (allowedDrop) | 818 | if (allowedDrop) |
819 | m_part.TriggerScriptChangedEvent(Changed.ALLOWED_DROP); | 819 | m_part.TriggerScriptChangedEvent(Changed.ALLOWED_DROP); |
820 | else | 820 | else |
821 | m_part.TriggerScriptChangedEvent(Changed.INVENTORY); | 821 | m_part.TriggerScriptChangedEvent(Changed.INVENTORY); |
822 | 822 | ||
823 | m_part.AggregateInnerPerms(); | 823 | m_part.AggregateInnerPerms(); |
824 | m_inventorySerial++; | 824 | m_inventorySerial++; |