From 2667fdf1e35b25569b26d6b24196ded575af1710 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Fri, 5 Dec 2008 05:19:32 +0000 Subject: Mantis #2754 Stop scripts that are removed from an object's inventory --- OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs index 6ebd675..2c9fd3e 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs @@ -525,6 +525,10 @@ namespace OpenSim.Region.Environment.Scenes if (m_items.ContainsKey(itemID)) { int type = m_items[itemID].InvType; + if (type == 10) // Script + { + m_part.ParentGroup.Scene.TriggerStopScript(m_part.LocalId, itemID); + } m_items.Remove(itemID); m_inventorySerial++; m_part.TriggerScriptChangedEvent(Changed.INVENTORY); -- cgit v1.1