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
|
||||
// owner change
|
||||
taskItem.Flags |= (uint)InventoryItemFlags.ObjectSlamPerm;
|
||||
|
||||
taskItem.LastOwnerID = item.Owner;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -815,10 +815,10 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
m_items.LockItemsForWrite(true);
|
||||
m_items.Add(item.ItemID, item);
|
||||
m_items.LockItemsForWrite(false);
|
||||
if (allowedDrop)
|
||||
m_part.TriggerScriptChangedEvent(Changed.ALLOWED_DROP);
|
||||
else
|
||||
m_part.TriggerScriptChangedEvent(Changed.INVENTORY);
|
||||
if (allowedDrop)
|
||||
m_part.TriggerScriptChangedEvent(Changed.ALLOWED_DROP);
|
||||
else
|
||||
m_part.TriggerScriptChangedEvent(Changed.INVENTORY);
|
||||
|
||||
m_part.AggregateInnerPerms();
|
||||
m_inventorySerial++;
|
||||
|
|
Loading…
Reference in New Issue