mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Another stab at cmickeyb's patch for script GC.
Moved the Close() for the appdomain-hosted parts into a new destructor on ScriptInstance.
This commit is contained in:
@@ -3673,14 +3673,14 @@ if (m_shape != null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ((GetEffectiveObjectFlags() & (uint)PrimFlags.Scripted) != 0)
|
||||
{
|
||||
m_parentGroup.Scene.EventManager.OnScriptTimerEvent += handleTimerAccounting;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_parentGroup.Scene.EventManager.OnScriptTimerEvent -= handleTimerAccounting;
|
||||
}
|
||||
//if ((GetEffectiveObjectFlags() & (uint)PrimFlags.Scripted) != 0)
|
||||
//{
|
||||
// m_parentGroup.Scene.EventManager.OnScriptTimerEvent += handleTimerAccounting;
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// m_parentGroup.Scene.EventManager.OnScriptTimerEvent -= handleTimerAccounting;
|
||||
//}
|
||||
|
||||
LocalFlags=(PrimFlags)objectflagupdate;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user