fix last owner on add to object inventory
parent
0f574d432d
commit
17ea412da1
|
@ -154,7 +154,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
// We're adding this to a prim we don't own. Force
|
// We're adding this to a prim we don't own. Force
|
||||||
// owner change
|
// owner change
|
||||||
taskItem.Flags |= (uint)InventoryItemFlags.ObjectSlamPerm;
|
taskItem.Flags |= (uint)InventoryItemFlags.ObjectSlamPerm;
|
||||||
|
taskItem.LastOwnerID = item.Owner;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -815,10 +815,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
m_items.LockItemsForWrite(true);
|
m_items.LockItemsForWrite(true);
|
||||||
m_items.Add(item.ItemID, item);
|
m_items.Add(item.ItemID, item);
|
||||||
m_items.LockItemsForWrite(false);
|
m_items.LockItemsForWrite(false);
|
||||||
if (allowedDrop)
|
if (allowedDrop)
|
||||||
m_part.TriggerScriptChangedEvent(Changed.ALLOWED_DROP);
|
m_part.TriggerScriptChangedEvent(Changed.ALLOWED_DROP);
|
||||||
else
|
else
|
||||||
m_part.TriggerScriptChangedEvent(Changed.INVENTORY);
|
m_part.TriggerScriptChangedEvent(Changed.INVENTORY);
|
||||||
|
|
||||||
m_part.AggregateInnerPerms();
|
m_part.AggregateInnerPerms();
|
||||||
m_inventorySerial++;
|
m_inventorySerial++;
|
||||||
|
|
Loading…
Reference in New Issue