From 4a69791875bcdb58554685a2ecdcaff2096883f2 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Fri, 26 Sep 2008 18:16:13 +0000 Subject: Add "Notecard saved" message to saves of notecards into prims --- .../Environment/Scenes/SceneObjectPart.Inventory.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs index f35bd59..5b57e73 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs @@ -394,6 +394,22 @@ namespace OpenSim.Region.Environment.Scenes item.ParentID = UUID; item.ParentPartID = UUID; item.Flags=m_taskInventory[item.ItemID].Flags; + if (item.AssetID == UUID.Zero) + { + item.AssetID = m_taskInventory[item.ItemID].AssetID; + } + else if ((InventoryType)item.Type == InventoryType.Notecard) + { + ScenePresence presence = + m_parentGroup.Scene.GetScenePresence( + item.OwnerID); + + if (presence != null) + { + presence.ControllingClient.SendAgentAlertMessage( + "Notecard saved", false); + } + } m_taskInventory[item.ItemID] = item; m_inventorySerial++; -- cgit v1.1