Stop scripts that are removed from an object's inventory
This commit is contained in:
Melanie Thielker
2008-12-05 05:19:32 +00:00
parent 1cad124b7d
commit 2667fdf1e3

View File

@@ -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);