Stop scripts that are removed from an object's inventory
0.6.1-post-fixes
Melanie Thielker 2008-12-05 05:19:32 +00:00
parent 1cad124b7d
commit 2667fdf1e3
1 changed files with 4 additions and 0 deletions

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