Spin off starting scripts in rezzed objects into a thread to avoid a recursion

into the script engine if the script was suspended inside an event.
avinationmerge
Melanie 2012-01-25 14:44:09 +01:00
parent 2ca80add14
commit 24862eaf15
1 changed files with 4 additions and 1 deletions

View File

@ -3007,7 +3007,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
// objects rezzed with this method are die_at_edge by default.
new_group.RootPart.SetDieAtEdge(true);
Util.FireAndForget(delegate object x)
{
new_group.ResumeScripts();
});
m_ScriptEngine.PostObjectEvent(m_host.LocalId, new EventParams(
"object_rez", new Object[] {