aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorMelanie Thielker2008-12-05 05:19:32 +0000
committerMelanie Thielker2008-12-05 05:19:32 +0000
commit2667fdf1e35b25569b26d6b24196ded575af1710 (patch)
treea060e126d8a5514d5eb3bbd3f8cb551e238718ac /OpenSim/Region
parentAllow no-copy attachments to be worn without losing them (diff)
downloadopensim-SC_OLD-2667fdf1e35b25569b26d6b24196ded575af1710.zip
opensim-SC_OLD-2667fdf1e35b25569b26d6b24196ded575af1710.tar.gz
opensim-SC_OLD-2667fdf1e35b25569b26d6b24196ded575af1710.tar.bz2
opensim-SC_OLD-2667fdf1e35b25569b26d6b24196ded575af1710.tar.xz
Mantis #2754
Stop scripts that are removed from an object's inventory
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs4
1 files changed, 4 insertions, 0 deletions
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
525 if (m_items.ContainsKey(itemID)) 525 if (m_items.ContainsKey(itemID))
526 { 526 {
527 int type = m_items[itemID].InvType; 527 int type = m_items[itemID].InvType;
528 if (type == 10) // Script
529 {
530 m_part.ParentGroup.Scene.TriggerStopScript(m_part.LocalId, itemID);
531 }
528 m_items.Remove(itemID); 532 m_items.Remove(itemID);
529 m_inventorySerial++; 533 m_inventorySerial++;
530 m_part.TriggerScriptChangedEvent(Changed.INVENTORY); 534 m_part.TriggerScriptChangedEvent(Changed.INVENTORY);