make sure XEngine does release script events when a script is destroyed
parent
618c6ceda5
commit
96dabca85b
|
@ -1112,9 +1112,6 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
m_part.RemFlag(PrimFlags.Scripted);
|
||||
}
|
||||
|
||||
if (type == (int)InventoryType.LSL)
|
||||
m_part.aggregateScriptEvents(); // this also does full update
|
||||
else
|
||||
m_part.ScheduleFullUpdate();
|
||||
|
||||
m_part.TriggerScriptChangedEvent(Changed.INVENTORY);
|
||||
|
|
|
@ -490,6 +490,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
|||
{
|
||||
ReleaseControls();
|
||||
AsyncCommandManager.RemoveScript(Engine, LocalID, ItemID);
|
||||
SceneObjectPart part = Engine.World.GetSceneObjectPart(LocalID);
|
||||
if (part != null)
|
||||
part.RemoveScriptEvents(ItemID);
|
||||
}
|
||||
|
||||
public void RemoveState()
|
||||
|
|
Loading…
Reference in New Issue